drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacques-n <...@git.apache.org>
Subject [GitHub] drill pull request: Issues/drill 3791
Date Thu, 01 Oct 2015 00:20:00 GMT
Github user jacques-n commented on a diff in the pull request:

    https://github.com/apache/drill/pull/177#discussion_r40868700
  
    --- Diff: contrib/storage-jdbc/src/main/java/org/apache/drill/exec/store/jdbc/JdbcRecordReader.java
---
    @@ -364,13 +368,15 @@ void copy(int index) throws SQLException {
     
       private class DateCopier extends Copier<NullableDateVector.Mutator> {
     
    +    Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
    +
         public DateCopier(int columnIndex, ResultSet result, NullableDateVector.Mutator mutator)
{
           super(columnIndex, result, mutator);
         }
     
         @Override
         void copy(int index) throws SQLException {
    -      Date date = result.getDate(columnIndex);
    +      Date date = result.getDate(columnIndex, calendar);
    --- End diff --
    
    private final (same for others below).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message