zy-kkk opened a new pull request, #352:
URL: https://github.com/apache/doris-thirdparty/pull/352

   - Summary: Introduces `kudu.timezone` to control how TIMESTAMP values are 
conver
   ted between Trino and Kudu,to ensure co
   nsistent semantics when Kudu stores UTC timestamps while users expect local 
time
    interpretation.
   - Changes:
     - KuduClientConfig: add `kudu.timezone` (default `UTC`), initialize 
timezone o
   ffset via `TimestampHelper`.
     - TimestampHelper: new utility using `java.time` to compute zone offset in 
mil
   liseconds and cache it.
     - KuduPageSink: when writing `TIMESTAMP_MILLIS`, subtract the offset 
(applied 
   in microseconds).
     - TypeHelper: when reading `TIMESTAMP_MILLIS`, add the offset; adjust 
`getJava
   Value` and `getLong`.
     - Docs: add `#kudu.timezone = UTC` to Kudu connector configuration docs.
   - Usage:
     - Set in `etc/catalog/kudu.properties`: `kudu.timezone=Asia/Shanghai` 
(default
   s to `UTC`).


-- 
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