You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2014/06/09 07:35:06 UTC
[jira] [Updated] (DRILL-791) Using two aggregate functions in a
query causes wrong results.
[ https://issues.apache.org/jira/browse/DRILL-791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Nadeau updated DRILL-791:
---------------------------------
Component/s: Query Planning & Optimization
Assignee: Jacques Nadeau (was: Aman Sinha)
> Using two aggregate functions in a query causes wrong results.
> --------------------------------------------------------------
>
> Key: DRILL-791
> URL: https://issues.apache.org/jira/browse/DRILL-791
> Project: Apache Drill
> Issue Type: Bug
> Components: Query Planning & Optimization
> Reporter: Mehant Baid
> Assignee: Jacques Nadeau
> Attachments: 0001-Fix-DRILL-791-In-Phase-1of2-use-the-agg-expr-ordinal.patch
>
>
> select min(employee_id), max(employee_id) from cp.`employee.json`;
> +------------+------------+
> | EXPR$0 | EXPR$1 |
> +------------+------------+
> | 1 | 1 |
> +------------+------------+
> In the above query we return the same result for both Min and Max. This seems to be related to multi phase aggregate not picking the correct ordinal.
--
This message was sent by Atlassian JIRA
(v6.2#6252)