-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use kudu connector to query values of UNIXTIME_MICROS type, time zone didn't take effect #6744
Comments
Hi !! In Kudu connector
I guess the result remains the same irrespective of the timezone set in the client Ref : #37 |
@lupengfei-johnson if Kudu's |
Unfortunately, this is all Kudu documentation has to say about it:
It doesn't explain the semantics of the type, just its encoding. In Impala, they've mapped it to TIMESTAMP, but I've seen some discussions where people expressed similar concerns, so it may make more sense to map it to TIMESTAMP WITH TIME ZONE. |
@findepi I expect that the values of Kudu's UNIXTIME_MICROS is mapped to timestamp in Asia/Shanghai time zone , because our sql scripts used Asia/Shanghai time to write sql like |
IF value represents a point in time, the connector should return it as such. cc @lzeiming |
We also find the timestamp value from our Kudu cluster in the query result is not compatible when we upgrade from 332 to 347 |
Based on the discussion here and elsewhere, it seems to me that we should map this type to |
In presto-server-0.228, time zone=Asia/Shanghai , the result is
2021-01-28 11:32:41.000
2021-01-28 11:32:41.000
2021-01-28 11:32:41.000
2021-01-28 11:32:38.000
2021-01-28 11:32:38.000
2021-01-28 11:32:38.000
2021-01-28 11:31:41.000
2021-01-28 11:31:41.000
2021-01-28 11:31:41.000
2021-01-28 11:31:38.000
(10 rows)
In trino-server-351, time zone=Asia/Shanghai , the result is
2021-01-28 03:32:41.000
2021-01-28 03:32:41.000
2021-01-28 03:32:41.000
2021-01-28 03:32:38.000
2021-01-28 03:32:38.000
2021-01-28 03:32:38.000
2021-01-28 03:31:41.000
2021-01-28 03:31:41.000
2021-01-28 03:31:41.000
2021-01-28 03:31:38.000
(10 rows)
The data in kudu is UTC time, in trino-server-351 ,the result is UTC time even though I used time zone=Asia/Shanghai
The text was updated successfully, but these errors were encountered: