You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Deneche A. Hakim (JIRA)" <ji...@apache.org> on 2015/06/12 00:19:02 UTC
[jira] [Updated] (DRILL-3281) window functions that involve TIME
columns generate wrong results
[ https://issues.apache.org/jira/browse/DRILL-3281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deneche A. Hakim updated DRILL-3281:
------------------------------------
Attachment: 3281.csv
> window functions that involve TIME columns generate wrong results
> -----------------------------------------------------------------
>
> Key: DRILL-3281
> URL: https://issues.apache.org/jira/browse/DRILL-3281
> Project: Apache Drill
> Issue Type: Sub-task
> Components: Execution - Flow
> Reporter: Deneche A. Hakim
> Assignee: Deneche A. Hakim
> Fix For: 1.1.0
>
> Attachments: 3281.csv
>
>
> Computing a MAX or MIN of a TIME column using the OVER clause seem to generate wrong results compared to Postgres. Example of such queries:
> {noformat}
> SELECT MIN(cast( columns[8] as TIME )) OVER(PARTITION BY cast( columns[2] as CHAR(2)) ORDER BY cast( columns[0] as INT )) FROM `allData.csv`;
> {noformat}
> SELECT MAX(cast( columns[8] as TIME )) OVER(PARTITION BY cast( columns[2] as CHAR(2)) ORDER BY cast( columns[0] as INT )) FROM `allData.csv`;
> {noformat}
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)