deniskuzZ commented on PR #8113: URL: https://github.com/apache/iceberg/pull/8113#issuecomment-1803541545
> > From @deniskuzZ comment (thanks Denys for the information), we can see that by default the session timezone used by Hive is the JVM timezone. > > The question isn't how the default is determined. What we need to know is how the session time zone is passed. This uses the default JVM timezone not the session timezone, which seems incorrect to me. I've shared the code above: set hive.local.time.zone=Europe/London; HIVE_LOCAL_TIME_ZONE("hive.local.time.zone", "LOCAL", "Sets the time-zone for displaying and interpreting time stamps. If this property value is set to\n" + "LOCAL, it is not specified, or it is not a correct time-zone, the system default time-zone will be\n " + "used instead. Time-zone IDs can be specified as region-based zone IDs (based on IANA time-zone data),\n" + "abbreviated zone IDs, or offset IDs."), ```` public ZoneId getLocalTimeZone() { String timeZoneStr = getVar(ConfVars.HIVE_LOCAL_TIME_ZONE); return TimestampTZUtil.parseTimeZone(timeZoneStr); } SessionState.get().getConf().getLocalTimeZone() ```` -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org