emkornfield commented on PR #18526:
URL: https://github.com/apache/iceberg/pull/18526#issuecomment-6204321605

   > both are stored as a long field. why would there be any storage size 
difference? are you thinking about compression?
   
   yes compression, or more specifically encoding.  Delta binary packed would 
likely do better with milliseconds.  Take for example millisecond values: `[1, 
2, 4]`-> `1 [1, 2]`, after frame of reference subtraction (-1) the vector part 
would `[0, 1]` so would require 1 bit per value.
   
   vs
   
   microseconds: `[1000, 2000, 4000]`->`1000 [1000, 2000]`, after frame of 
reference subtraction (-1000) the vector part would be `[0, 1000]` required 10 
bits per value.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to