-
Notifications
You must be signed in to change notification settings - Fork 244
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
Fix the time zone check issue #5767
Conversation
Signed-off-by: Firestarman <firestarmanllc@gmail.com>
For early review |
did you mean this to be against 22.06? Unless specifically requested this should go against 22.08 |
It is a bug fix, so I thought it should go into 22.06. Rebased to 22.08 |
build |
The change looks good as a narrow fix. However, the logic for timezone error handling in the plugin initialization is not quire clear
We need to file the issue to clarify this if it's beyond the current PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with caveats regarding Plugin init checks
Personally the current time zone checks in Plugin init are OK. (Please correct me if I am wrong) At the init stage on the driver, Plugin does not know whether the time zone will be used. So it is not necessary to check the time zone here. And this check will be executed during the time related operators' overriding process later. On executors, the time zone is required to be equal to the driver's only for the time related GPU operators, I think. If time zone is not supported, no time related GPU operators exist (all fall back to CPU), then no need to check the difference of the time zones. |
I am going to merge this, if any issue, we can follow up in new issues. |
So looks like you are arguing for dropping the check
because it's an init-time not a query-time check. Also again the default timezone of the driver as of init time may be different at the query time. I'll file an issue to clarify these limitations. |
Fixes #5678
There are two settings for time zone, the Spark session local time zone and JVM's default time zone. And they may be different from each other according to issue #5678.
With this PR, plugin now requires both of the two settings being equal to UTC to support timestamp type.
Signed-off-by: Firestarman firestarmanllc@gmail.com