drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khurram Faraaz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-3275) Difference in expected results - query that uses window functions
Date Wed, 10 Jun 2015 22:36:01 GMT
Khurram Faraaz created DRILL-3275:
-------------------------------------

             Summary: Difference in expected results - query that uses window functions
                 Key: DRILL-3275
                 URL: https://issues.apache.org/jira/browse/DRILL-3275
             Project: Apache Drill
          Issue Type: Bug
          Components: Execution - Flow
    Affects Versions: 1.0.0
            Reporter: Khurram Faraaz
            Assignee: Chris Westin


The following queries return wrong results, there is a difference in actual vs expected results.
Expected results were generated on Postgres 9.3
These queries were run on 4 node cluster on CentOS, window functions were set.

{code}
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`;
{code}

{code}
SELECT SUM(cast( columns[0] as INT )) OVER(PARTITION BY cast( columns[2] as CHAR(2)) ORDER
BY cast( columns[0] as INT )) FROM `allData.csv`;
{code}

{code}
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`;
{code}

{code}
SELECT SUM(cast( columns[1] as BIGINT )) OVER(PARTITION BY cast( columns[2] as CHAR(2)) ORDER
BY cast( columns[0] as INT )) FROM `allData.csv`;
{code}



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

Mime
View raw message