drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deneche A. Hakim (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-3268) queries with empty OVER() clause return empty result set
Date Tue, 09 Jun 2015 23:33:00 GMT

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

Deneche A. Hakim updated DRILL-3268:
------------------------------------
    Fix Version/s: 1.1.0

> 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
>            Reporter: Deneche A. Hakim
>            Assignee: Deneche A. Hakim
>             Fix For: 1.1.0
>
>
> 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)

Mime
View raw message