[ 
https://issues.apache.org/jira/browse/DRILL-3326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14603225#comment-14603225
 ] 

Victoria Markman commented on DRILL-3326:
-----------------------------------------

Verified fixed in 1.1

#Thu Jun 25 23:56:00 EDT 2015
git.commit.id.abbrev=6503cfb

{code}
0: jdbc:drill:schema=dfs> select FIRST_VALUE(voter_id) OVER (PARTITION BY age 
ORDER BY contributions ROWS BETWEEN CURRENT ROW AND 1 FOLLOWING) as t from 
voter_hive;
Error: UNSUPPORTED_OPERATION ERROR: The window function FIRST_VALUE is not 
supported
See Apache Drill JIRA: DRILL-3195
[Error Id: d7d96865-27f5-4258-b57a-cd7240c649d5 on atsqa4-133.qa.lab:31010] 
(state=,code=0)
{code}

> Query with unsupported windows function containing "AS" blocks correct error 
> message
> ------------------------------------------------------------------------------------
>
>                 Key: DRILL-3326
>                 URL: https://issues.apache.org/jira/browse/DRILL-3326
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 1.1.0
>            Reporter: Krystal
>            Assignee: Sean Hsuan-Yi Chu
>              Labels: no_verified_test, window_function
>             Fix For: 1.1.0
>
>
> The following query contains "AS"  using un-supported function first_value 
> gives incorrect error:
> select FIRST_VALUE(voter_id) OVER (PARTITION BY age ORDER BY contributions 
> ROWS BETWEEN CURRENT ROW AND 1 FOLLOWING) as t from voter_hive;
> Error: SYSTEM ERROR: org.apache.drill.exec.exception.SchemaChangeException: 
> Failure while materializing expression. 
> Error in expression at index -1.  Error: Missing function implementation: 
> [first_value(INT-OPTIONAL)].  Full expression: --UNKNOWN EXPRESSION--.
> After I remove the "AS" keyword, the correct error message is displayed:
> select FIRST_VALUE(voter_id) OVER (PARTITION BY age ORDER BY contributions 
> ROWS BETWEEN CURRENT ROW AND 1 FOLLOWING) from voter_hive;
> Error: UNSUPPORTED_OPERATION ERROR: The window function FIRST_VALUE is not 
> supported
> See Apache Drill JIRA: DRILL-3195



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

Reply via email to