[ 
https://issues.apache.org/jira/browse/DRILL-791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14029343#comment-14029343
 ] 

Jacques Nadeau commented on DRILL-791:
--------------------------------------

Merged in a previous merge but not closed. Closing now.

> 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: DrillCommitter
>             Fix For: 1.0.0-BETA1
>
>         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)

Reply via email to