drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-3882) Time and Timestamp vectors should not return timezone-based data
Date Fri, 02 Oct 2015 21:22:26 GMT

    [ https://issues.apache.org/jira/browse/DRILL-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941787#comment-14941787
] 

Andrew commented on DRILL-3882:
-------------------------------

Thanks for the confirmation [~julianhyde]. 

> Time and Timestamp vectors should not return timezone-based data
> ----------------------------------------------------------------
>
>                 Key: DRILL-3882
>                 URL: https://issues.apache.org/jira/browse/DRILL-3882
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Other
>    Affects Versions: 1.1.0
>            Reporter: Andrew
>            Assignee: Andrew
>             Fix For: 1.2.0
>
>
> TimeVector, NullableTimeVector, TimestampVector, and NullableTimestampVector should not
return values that contain timezone information. Each of these classes implements:
> {code}
> public DateTime getObject()
> {code}
> I believe the correct method should be
> {code}
> public LocalTime getObject()
> {code}
> The rational for this change is that the "time" and "timestamp" types are not timezone-aware
and therefore are more closely modeled by Joda's LocalTime class.
> Additionally, the way it is now makes testing harder b/c {code}TestBuilder{code} wants
to use {code}DateTime{code} objects to compare results from JDBC storage engines, but the
storage engine's return no timezone information for such types.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message