You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Gatsby-Lee (via GitHub)" <gi...@apache.org> on 2023/02/09 18:44:59 UTC

[GitHub] [hudi] Gatsby-Lee commented on issue #6232: [SUPPORT] Hudi V0.9 truncating second precision for timestamp columns

Gatsby-Lee commented on issue #6232:
URL: https://github.com/apache/hudi/issues/6232#issuecomment-1424657330

   hmm interesting.
   I am on Glue 3 + Hudi 0.10.1.
   
   While I did bulk_insert from Hudi Table A to Hudi Table B to change recordKey, I encountered an issue related Timestamp.
   
   Hudi Table A
   - timestamp datatype in Table Schema in AWS Glue Catalog 
   - Parquet meta shows `OPTIONAL INT64 L:TIMESTAMP(MICROS,true) R:0 D:1`
   
   Hudi Table B
   - timestamp datatype in Table Schema in AWS Glue Catalog 
   - Parquet meta shows `OPTIONAL INT64 L:TIMESTAMP(MILLIS,true) R:0 D:1`
   - The data is queryable and looks working and valid. HOWEVER, when the new record is coming in with MICROS format into the Parquet's meta `TIMESTAMP(MILLIS)`, things become super weird.
   
   The fix for me is `hoodie.parquet.outputtimestamptype: TIMESTAMP_MICROS`
   
   I can see the precision as well like `2023-02-09 05:01:44.626`
   
   


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org