drill-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Omernik <j...@omernik.com>
Subject Re: Odd Issue with to_date function
Date Tue, 28 Feb 2017 23:52:03 GMT
I am hitting this error again.. I really don't want to restart my cluster
with a UTC...

Let's put ourselves in to shoes of an analyst using a Drill Cluster.... all
they are going to feel is frustration that they can't run a query like
this. It doesn't provide a great error message, and even if they find this
thread, they may not have the ability to make this change (ranging from
they don't have the permissions, to admins just say no because of the other

We need a way to handle this at the session level.


On Fri, Apr 1, 2016 at 6:15 PM, John Omernik <john@omernik.com> wrote:

> Yes, that worked, I restarted my drill cluster using -Duser.timezone=UTC
> on startup.  Per the other thread that I found after the fact (I was
> traveling) this works, but I wonder if we can't have a less intrusive fix.
> I.e. restarting the drill cluster to fix this (by adding the system
> property) is a pretty far reaching fix, and could have other downstream
> affects.  I see how this can come up, I just wonder if there could be some
> sort of option (using alter session), which per the other thread didn't
> appear to be the case, that we could use.  Changing the Drill bit time zone
> affects all users, alter session would be more localized (and if we had
> this, we should update the error message to possibly suggest the DST thing,
> with the proper command.
> Could we as a long term fix try to add a synonym for the time? I think
> that's the proper way to handle things as the time truly doesn't exist, so
> instead of just throwing an error add an hour and call it good. :)
> On Fri, Apr 1, 2016 at 3:32 PM, Ted Dunning <ted.dunning@gmail.com> wrote:
>> On Fri, Apr 1, 2016 at 6:54 AM, John Omernik <john@omernik.com> wrote:
>> > SYSTEM ERROR: IllegalInstantException: Cannot parse "2003-04-06
>> 02:34:20":
>> > Illegal instant due to time zone offset transition (America/Chicago)
>> > Fragment 3:9
>> >
>> Can you set your timezone to +0600 to avoid DST transitions? Will that
>> break things?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message