ruanhang1993 commented on PR #3511:
URL: https://github.com/apache/flink-cdc/pull/3511#issuecomment-2275045480

   > Seems Flink TIMESTAMP has a range limit from 0000-01-01 00:00:00.000000000 
to 9999-12-31 23:59:59.999999999[1]. According to current binary encoding 
format, the millisecond part will be `253,402,300,799,999` at most, far smaller 
than the largest value that `Long` could carry (`9,223,372,036,854,775,807`). 
The higher 16 bits are actually wasted.
   > 
   > Is it possible to encode the "is compact or not" information on these 
unused higher bits?
   > 
   > Ignore my comment if it's too hard to implement.
   > 
   > [1] 
https://nightlies.apache.org/flink/flink-docs-release-1.19/docs/dev/table/types/
   
   Thanks for this suggestion. I think this could be implemented in the next 
version as an optimization. 


-- 
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: issues-unsubscr...@flink.apache.org

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

Reply via email to