armitage420 commented on code in PR #5779: URL: https://github.com/apache/hive/pull/5779#discussion_r2293059658
########## ql/src/test/queries/clientpositive/avro_timestamp_micros.q: ########## @@ -0,0 +1,9 @@ +CREATE EXTERNAL TABLE micros_table(`dt` timestamp) +STORED AS AVRO; + +INSERT INTO micros_table VALUES +(cast('2024-08-09 14:08:26.326107' as timestamp)), +('2012-02-21 07:08:09.123'), +('1014-02-11 07:15:11.12345'); + +SELECT * FROM micros_table; Review Comment: Essentially, Avro has logical-types for one single column that shows the maximum precision it can hold. In hive, we have only one timestamp column no matter how many logical-types are there. Hence, I have inserted multiple rows that are synonymous to timestamp-micros and timestamp-millis -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org