drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deneche A. Hakim (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-3281) window functions that involve TIME columns generate wrong results
Date Thu, 11 Jun 2015 22:16:00 GMT
Deneche A. Hakim created DRILL-3281:
---------------------------------------

             Summary: 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
            Reporter: Deneche A. Hakim
            Assignee: Deneche A. Hakim


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)

Mime
View raw message