[ 
https://issues.apache.org/jira/browse/HIVE-23462?focusedWorklogId=438608&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-438608
 ]

ASF GitHub Bot logged work on HIVE-23462:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/May/20 08:08
            Start Date: 29/May/20 08:08
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on a change in pull request #1031:
URL: https://github.com/apache/hive/pull/1031#discussion_r432323344



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveRelBuilder.java
##########
@@ -157,6 +159,12 @@ public static SqlAggFunction getRollup(SqlAggFunction 
aggregation) {
     return null;
   }
 
+  @Override
+  public AggCall aggregateCall(SqlAggFunction aggFunction, boolean distinct, 
boolean approximate, boolean ignoreNulls,
+      RexNode filter, ImmutableList<RexNode> orderKeys, String alias, 
ImmutableList<RexNode> operands) {
+    return super.aggregateCall(aggFunction, distinct, approximate, 
ignoreNulls, filter, orderKeys, alias, operands);

Review comment:
       actually 
[AggregateCall#isApproximate](https://github.com/apache/calcite/blob/abe772018a6adb5007429e0c1c83b6e7d83a1c71/core/src/main/java/org/apache/calcite/rel/core/AggregateCall.java#L218)
 is only used at one place - to decide to merge or not aggregates (in 
[AggregateMergeRule](https://github.com/apache/calcite/blob/abe772018a6adb5007429e0c1c83b6e7d83a1c71/core/src/main/java/org/apache/calcite/rel/rules/AggregateMergeRule.java#L70));
 I now think that I've incorrectly set it to true - although the sketch will 
collect some features of the dataset; the approximation will be done by the 
`sketch_estimate` function
   
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 438608)
    Time Spent: 1h  (was: 50m)

> Add option to rewrite NTILE to sketch functions
> -----------------------------------------------
>
>                 Key: HIVE-23462
>                 URL: https://issues.apache.org/jira/browse/HIVE-23462
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-23462.01.patch, HIVE-23462.02.patch, 
> HIVE-23462.03.patch, HIVE-23462.04.patch
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to