You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Keith G Yu (Jira)" <ji...@apache.org> on 2019/10/09 15:40:00 UTC
[jira] [Closed] (DRILL-7348) Aggregate on Subquery with Select
Distinct or UNION fails to Group By
[ https://issues.apache.org/jira/browse/DRILL-7348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith G Yu closed DRILL-7348.
-----------------------------
Resolution: Not A Problem
> Aggregate on Subquery with Select Distinct or UNION fails to Group By
> ---------------------------------------------------------------------
>
> Key: DRILL-7348
> URL: https://issues.apache.org/jira/browse/DRILL-7348
> Project: Apache Drill
> Issue Type: Bug
> Components: Functions - Drill
> Affects Versions: 1.15.0
> Reporter: Keith G Yu
> Priority: Major
>
> The following query fails to group properly.
> {code:java}
> SELECT date, COUNT(1)
> FROM (
> SELECT DISTINCT
> id,
> date,
> status
> FROM table(dfs.`path`(type => 'text', fieldDelimiter => ',', extractHeader => TRUE))
> )
> GROUP BY 1{code}
> This also fails to group properly.
> {code:java}
> SELECT date, COUNT(1)
> FROM (
> SELECT
> id,
> date,
> status
> FROM table(dfs.`path1`(type => 'text', fieldDelimiter => ',', extractHeader => TRUE))
> UNION
> SELECT
> id,
> date,
> status
> FROM table(dfs.`path2`(type => 'text', fieldDelimiter => ',', extractHeader => TRUE))
> )
> GROUP BY 1
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)