You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aman Sinha (JIRA)" <ji...@apache.org> on 2015/06/08 20:14:01 UTC

[jira] [Updated] (DRILL-3252) Error message must provide information about grouping column

     [ https://issues.apache.org/jira/browse/DRILL-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aman Sinha updated DRILL-3252:
------------------------------
    Fix Version/s: 1.2.0

> 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
>              Labels: window_function
>             Fix For: 1.2.0
>
>
> 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)