impala-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "N Campbell (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IMPALA-5098) support projection combining SELECT DISTINCT and analytic function
Date Sun, 19 Mar 2017 18:54:41 GMT
N Campbell created IMPALA-5098:
----------------------------------

             Summary: support projection combining SELECT DISTINCT and analytic function
                 Key: IMPALA-5098
                 URL: https://issues.apache.org/jira/browse/IMPALA-5098
             Project: IMPALA
          Issue Type: Improvement
          Components: Backend
    Affects Versions: Impala 2.6.0
            Reporter: N Campbell


DB2, ORACLE and various other systems will support the following statement but Impala will
not

[Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state:
TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: cannot combine
SELECT DISTINCT with analytic functions
), Query: SELECT DISTINCT 
    `sno` AS `c1`, 
    `pno` AS `c2`, 
    SUM(`qty`)
        OVER(
        ) AS `c3`
FROM
    `cert`.`tsupply` 
ORDER BY 
    `sno` ASC NULLS LAST, 
    `pno` ASC NULLS LAST.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message