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-3252) Error message must provide information about grouping column
Date Thu, 04 Jun 2015 17:47:38 GMT
Khurram Faraaz created DRILL-3252:
-------------------------------------

             Summary: Error message must provide information about grouping column
                 Key: DRILL-3252
                 URL: https://issues.apache.org/jira/browse/DRILL-3252
             Project: Apache Drill
          Issue Type: Bug
          Components: Query Planning & Optimization
    Affects Versions: 1.0.0
            Reporter: Khurram Faraaz
            Assignee: Jinfeng Ni
            Priority: Minor


Enable window functions and run the below query. The error message is not very clear. The
grouping column is columns[4] cast as TIMESTAMP, and the order by column in also columns[4]
but here it is cast as INT.

The error message just says 'columns' is not being grouped. We need to report which column
it is. 

{code}
0: jdbc:drill:schema=dfs.tmp> SELECT MAX(cast( columns[4] as TIMESTAMP )) OVER(PARTITION
BY cast( columns[4] as TIMESTAMP) ORDER BY cast( columns[4] as INT )) FROM `allData.csv` group
by cast(columns[4] as TIMESTAMP);
Error: PARSE ERROR: From line 1, column 109 to line 1, column 115: Expression 'columns' is
not being grouped

[Error Id: 08b6a0da-1b47-44f4-bd66-1c964c43b9ee on centos-01.qa.lab:31010] (state=,code=0)
{code}



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

Mime
View raw message