-
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
parse_datetime behavior depends on client locale #21786
Comments
cc: @martint |
My thought is that we should hard-code the locale in the implementation of those functions and provide alternative versions that take a locale as an argument. |
Views should store the locale. The behavior of a view should not change based on the current session, unless it explicitly uses functions such as We shouldn’t change the existing behavior of the functions, as that may break users. Locale is a supported part of the session for functions to use. |
The problems I see in the current implementation are:
(2) can be solved by adding a variant of the functions that takes a locale as an argument. |
We are an international team and we were almost going insane not understanding why some query fails intermitently. It turns out parse_datetime behave differently base on the connected client locale. In our case, this function was invoked from a view which made it hard to pin down. This is also invoked on data from a database table, not from the client, making it even more confusing. I am running 426 on AWS EMR.
The text was updated successfully, but these errors were encountered: