ericsun2 commented on issue #417:
URL: https://github.com/apache/iceberg/issues/417#issuecomment-699510633


   How about providing fine control of timestamp conversion in the 
year/month/day/hour `Transforms` as a secondary optional parameter?
   
   `.hour(timestampValue)`  // current syntax
   `.hour(longValue)`  // default to EPOCH_MILLIS
   `.hour(longValue, EPOCH_MILLIS)`
   `.hour(longValue, EPOCH)`  // seconds since epoch, this option should also 
be popular, the community can make it default
   `.hour(longValue, EPOCH_MINS)`  // minutes since epoch
   `.hour(longValue, EPOCH_10MINS)`  // 10-minute units since epoch, this is 
just for fun here ^_^
   `.hour(longValue, EPOCH_HOURS)`  // hours since epoch
   
   The IoT, telemetry and Java-based logging can use the long/int-based epoch 
offset with various precisions.
   


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



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

Reply via email to