Bug 1329169 - Hive/Impala translator - select distinct and gorup by is not supported in one query
Summary: Hive/Impala translator - select distinct and gorup by is not supported in one...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER3
: 6.3.0
Assignee: Van Halbert
QA Contact: Juraj Duráni
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-21 10:19 UTC by Juraj Duráni
Modified: 2016-08-24 11:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-24 11:39:18 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-4158 0 Major Closed Hive/Impala translator - select distinct and gorup by is not supported in one query 2016-06-15 06:05:26 UTC

Description Juraj Duráni 2016-04-21 10:19:33 UTC
Hive and Impala do not support combination of SELECT DISTINCT and GROUP BY in one SQL query.

Messages of exceptions:
Impala - cannot combine SELECT DISTINCT with aggregate functions or GROUP BY
Hive - SELECT DISTINCT and GROUP BY can not be in the same query. 

DDL:
CREATE VIEW Agg2 (StringNum string)
  AS SELECT BQT1.SmallA.StringNum FROM BQT1.SmallA GROUP BY BQT1.SmallA.StringNum HAVING BQT1.SmallA.StringNum = '1';
Query:
SELECT DISTINCT StringNum FROM VQT.Agg2

Comment 2 JBoss JIRA Server 2016-04-21 15:52:52 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4158 to Resolved

Comment 3 JBoss JIRA Server 2016-06-08 12:00:44 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4158 to Closed


Note You need to log in before you can comment on or make changes to this bug.