[
https://issues.apache.org/jira/browse/CALCITE-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15131459#comment-15131459
]
Chris Albright commented on CALCITE-1072:
-----------------------------------------
No worries 😀 I'm glad you were able to fix it with just the bug report.
> CSV adapter incorrectly parses TIMESTAMP values after noon
> ----------------------------------------------------------
>
> Key: CALCITE-1072
> URL: https://issues.apache.org/jira/browse/CALCITE-1072
> Project: Calcite
> Issue Type: Bug
> Reporter: Chris Albright
> Assignee: Julian Hyde
> Fix For: 1.7.0
>
>
> When querying timestamp data using the CSV adapter, the time is always in A.M.
> for example this input file: EXAMPLE_DATA.csv
> ID:long,START:timestamp,END:timestamp
> 1,"2015-12-31 07:15:56","2015-12-31 13:31:21"
> yields this output in sqlline:
> select * from example_data;
> | ID | START | END |
> | 1 | 2015-12-31 07:15:56 | 2015-12-31 01:31:21 |
> The bug appears to be in org.apache.calcite.adapter.csv.CsvEnumerator on
> lines 59 and 60. The parse formats use 'hh' instead of 'HH' for the hour part.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)