-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Default timezone regression #4658
Comments
I found the problem: When setting the value from config we have: /// This must be done before any usage of DateLUT. In particular, before any logging.
if (config().has("timezone"))
{
if (0 != setenv("TZ", config().getString("timezone").data(), 1))
throw Poco::Exception("Cannot setenv TZ variable");
tzset();
} As comment says this should execute before any DateLUT is created. But adding a fprintf in this place and in DateLut config indicates that DateLut is created first and then this code is executed. Didn't found yet where is created. I'll dig more. |
Seems the above condition get broken on the ParquetBlockInputStream.cpp line 262 where creating this global variable const std::unordered_map<arrow::Type::type, std::shared_ptr<IDataType>> arrow_type_to_internal_type = {
...
{arrow::Type::DATE64, std::make_shared<DataTypeDateTime>()},
{arrow::Type::TIMESTAMP, std::make_shared<DataTypeDateTime>()},
//{arrow::Type::TIME32, std::make_shared<DataTypeDateTime>()},
...
}; Makes DateLUT to be initialized before the above statement is executed. |
We ran into the same issue which broke nearly everything for use because it all depends on the timezone. It would be great if this could be resolved and rolled out very soon. |
Building with -DENABLE_PARQUET=0 can be used as workaround |
Thank you @proller |
Latest release still has the issue.
As a temporary fix you can set a specific timezone in the environment. Add the following lines with
|
Have this problem too on |
After I upgraded to last master today (from an old version from sept 2018) I see at least on OSX that even if in
config.xml
I have<timezone>UTC</timezone>
the server is using the system timezone which isEurope/Bucharest
.This can be tested as well using
SELECT timezone()
Anything changed config wise in the last time ?
Silviu
The text was updated successfully, but these errors were encountered: