我使用 sqoop 将带有选定列的表导入到 avro 文件格式。使用 avro-tools tojson 日期以奇怪的格式出现(负数)。我怎样才能解码日期?
{"first_name":{"string":"Mary"},"last_name": {"string":"Botman"},"birth_date":{"long":-345772800000}}
MySQL 查询的正确格式在哪里
mysql> select first_name, last_name, birth_date from employees where first_name like 'Mary' and last_name ='Botman';
+------------+-----------+------------+
| first_name | last_name | birth_date |
+------------+-----------+------------+
| Mary | Botman | 1959-01-17 |
+------------+-----------+------------+
1 row in set (0.07 sec)