You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Khurram Faraaz (JIRA)" <ji...@apache.org> on 2015/06/11 00:36:01 UTC

[jira] [Created] (DRILL-3275) Difference in expected results - query that uses window functions

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)