1
avoファイル形式にsqoopを使用して、選択した列のテーブルをインポートしました。 avro-toolsを使用すると、日付が奇妙な形式で表示されます(否定的)。どのように日付をデコードできますか?Avro 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)