You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2019/12/24 01:44:12 UTC

[GitHub] [hive] cdmikechen opened a new pull request #871: HIVE-22224: Support Parquet-Avro Timestamp Type in Hive2

cdmikechen opened a new pull request #871: HIVE-22224: Support Parquet-Avro Timestamp Type in Hive2
URL: https://github.com/apache/hive/pull/871
 
 
   Parquet-avro 1.8.2 use Avro 1.8 which support avro logical_type, but hive use avro 1.7. So that hive just use primitive types to read avro. In avro 1.8, decimal can be transformed to fix, and date can transformed to int (logical_type= date), hive can read these two type with primitive types fix and int. But timestamp will be transformed to long (logical_type=timestamp-micros).
   If user create a table with column timestamp, hive will report error that long can not cast to timestamp. So I create a PR to let hive can read long as timestamp.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org