drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chun Chang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-2914) regression: Mondrian query534.q, drill give wrong result
Date Thu, 30 Apr 2015 00:15:06 GMT
Chun Chang created DRILL-2914:
---------------------------------

             Summary: regression: Mondrian query534.q, drill give wrong result
                 Key: DRILL-2914
                 URL: https://issues.apache.org/jira/browse/DRILL-2914
             Project: Apache Drill
          Issue Type: Bug
          Components: Execution - Relational Operators
    Affects Versions: 0.9.0
            Reporter: Chun Chang
            Assignee: Chris Westin
            Priority: Critical


#Wed Apr 29 14:39:22 EDT 2015
git.commit.id.abbrev=f5b0f49

Running mondrian tests and noticed several regressions. This one is related to group by with
select * subquery.

{code}
SELECT gender2.gender AS c0 
FROM   (SELECT * 
        FROM   customer) AS gender2 
GROUP  BY gender2.gender 
ORDER  BY gender2.gender ASC nulls last;
{code}

Correct result from postgres:
{code}
foodmart=# select gender2.gender as c0 from (SELECT * FROM customer) as gender2 group by gender2.gender
order by gender2.gender ASC NULLS LAST;
 c0
----
 F
 M
(2 rows)
{code}

Wrong result from drill:
{code}
0: jdbc:drill:schema=dfs.drillTestDirAdvanced> select gender2.gender as c0 from (SELECT
* FROM customer) as gender2 group by gender2.gender order by gender2.gender ASC NULLS LAST;
+------------+
|     c0     |
+------------+
| null       |
+------------+
{code}



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

Mime
View raw message