lasdf1234 commented on code in PR #11106: URL: https://github.com/apache/gravitino/pull/11106#discussion_r3245649232
########## docs/iceberg-rest-engine/trino.md: ########## @@ -158,6 +158,22 @@ WITH ( ); ``` +## Timestamp with time zone behavior + +For `TIMESTAMP WITH TIME ZONE` values, Trino does not adjust query results according to the client +session time zone. Unlike Spark and Flink, Trino displays these values based on the stored +timestamp-with-time-zone value. + +To convert a `TIMESTAMP WITH TIME ZONE` value to the current client session time zone, use +`at_timezone` together with `current_timezone()`: + +```sql +SELECT + id, + at_timezone(timestamp_with_timezone_column, current_timezone()) +FROM gravitino_irc.<namespace>.<table>; +``` Review Comment: Got how about <catalog>.<namespace>.<table> -- 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]
