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

Victoria Markman commented on DRILL-3268:
-----------------------------------------

Verified fixed in 1.1

#Tue Jun 30 14:50:20 EDT 2015
git.commit.id.abbrev=e3fc7e9

Tests are in: Functional/Passing/window_functions/empty_over_clause

> queries with empty OVER() clause return empty result set
> --------------------------------------------------------
>
>                 Key: DRILL-3268
>                 URL: https://issues.apache.org/jira/browse/DRILL-3268
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Relational Operators
>            Reporter: Deneche A. Hakim
>            Assignee: Steven Phillips
>              Labels: window_function
>             Fix For: 1.1.0
>
>         Attachments: DRILL-3268.1.patch.txt
>
>
> The following query returns, incorrectly, an empty result set:
> {noformat}
> 0: jdbc:drill:zk=local> SELECT employee_id, position_id, salary, SUM(salary) 
> OVER() FROM cp.`employee.json` LIMIT 1000;
> +--------------+--------------+---------+---------+
> | employee_id  | position_id  | salary  | EXPR$3  |
> +--------------+--------------+---------+---------+
> +--------------+--------------+---------+---------+
> No rows selected (0.287 seconds)
> {noformat}
> DRILL-1862 is required otherwise such queries won't plan at all.
> The problem is caused by WindowFrameRecordBatch.buildSchema() which assumes 
> the very first batch to be an empty batch that only contains the schema, 
> which is not the case when using OVER()



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

Reply via email to