drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aman Sinha (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-2914) regression: Mondrian query534.q, drill give wrong result
Date Sat, 09 May 2015 17:04:59 GMT

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

Aman Sinha resolved DRILL-2914.
-------------------------------
    Resolution: Fixed

Committed [~seanhychu]'s patch in a8c938767. 

> 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: Query Planning & Optimization
>    Affects Versions: 0.9.0
>            Reporter: Chun Chang
>            Assignee: Sean Hsuan-Yi Chu
>            Priority: Critical
>             Fix For: 1.0.0
>
>         Attachments: DRILL-2914.1.patch, customer
>
>
> #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