Re: Right way to insert to timestamp column via Java api

2018-05-02 Thread Mauricio Aristizabal
Thanks very much Dan. Yes, I linked to impala because end-goal is to have column there defined with TIMESTAMP and display as such in query results, and it has the info on precision of both impala and kudu timestamps. Understood on the api usage. Might be nice though to document the addLong metho

Re: Right way to insert to timestamp column via Java api

2018-05-02 Thread Dan Burkert
Hi Mauricio, The docs you linked to are for Impala, not Kudu. Kudu's timestamp type internally keeps microsecond precision. Your example of multiplying by 1000 is correct; you should adjust whatever your timestamp is to microseconds since the unix epoch. There are a bunch of different time APIs

Right way to insert to timestamp column via Java api

2018-05-02 Thread Mauricio Aristizabal
Impala docs indicate that "Kudu represents date/time columns using 64-bit values" and also that "the time portion of a TIMESTAMP value is in nanoseconds", and I know a Java Date "stores time in milliseconds sinc