[
https://issues.apache.org/jira/browse/HIVE-23030?focusedWorklogId=409351&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-409351
]
ASF GitHub Bot logged work on HIVE-23030:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Mar/20 07:00
Start Date: 25/Mar/20 07:00
Worklog Time Spent: 10m
Work Description: kgyrtkirk commented on pull request #960: HIVE-23030 ds
rollup union
URL: https://github.com/apache/hive/pull/960#discussion_r397642048
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/SqlFunctionConverter.java
##########
@@ -468,6 +470,13 @@ private static String getName(GenericUDF hiveUDF) {
);
registerFunction("date_add", HiveDateAddSqlOperator.INSTANCE,
hToken(HiveParser.Identifier, "date_add"));
registerFunction("date_sub", HiveDateSubSqlOperator.INSTANCE,
hToken(HiveParser.Identifier, "date_sub"));
+
+ DataSketchesFunctions.registerCalciteFunctions(this);
+ }
+
+ @Override
+ public void accept(Pair<String, SqlOperator> t) {
+ registerDuplicateFunction(t.left, t.right, hToken(HiveParser.Identifier,
t.left));
Review comment:
The other register method gets into reading the annotation on the `UDF`
class looking for its name - for DS functions it will either bump into an NPE
or came up with a completely different name....
This behaviour is really wierd because it have got the udf name as argument.
the `registerDuplicateFunction` only registers the function....I think the
other method should be investigated why it interrogates UDF annotations - I
think the name `registerDuplicateFunction` is an unlucky name...it should be
renamed
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 409351)
Time Spent: 1h 50m (was: 1h 40m)
> Enable sketch union-s to be rolled up
> -------------------------------------
>
> Key: HIVE-23030
> URL: https://issues.apache.org/jira/browse/HIVE-23030
> Project: Hive
> Issue Type: Sub-task
> Reporter: Zoltan Haindrich
> Assignee: Zoltan Haindrich
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-23030.01.patch, HIVE-23030.02.patch
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Enabling rolling up sketch aggregates could enable the matching of
> materialized views created for higher dimensions to be applied for lower
> dimension cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)