[
https://issues.apache.org/jira/browse/HIVE-26243?focusedWorklogId=820027&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-820027
]
ASF GitHub Bot logged work on HIVE-26243:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Oct/22 13:17
Start Date: 25/Oct/22 13:17
Worklog Time Spent: 10m
Work Description: deniskuzZ commented on code in PR #3317:
URL: https://github.com/apache/hive/pull/3317#discussion_r1004476395
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java:
##########
@@ -4461,17 +4464,21 @@ public static
ImmutablePair<VectorAggregationDesc,String> getVectorAggregationDe
VectorizationContext vContext)
throws HiveException {
- VectorizedUDAFs annotation =
- AnnotationUtils.getAnnotation(evaluator.getClass(),
VectorizedUDAFs.class);
- if (annotation == null) {
- String issue =
- "Evaluator " + evaluator.getClass().getSimpleName() + " does not
have a " +
- "vectorized UDAF annotation (aggregation: \"" + aggregationName +
"\"). " +
- "Vectorization not supported";
- return new ImmutablePair<VectorAggregationDesc,String>(null, issue);
+ Class<? extends VectorAggregateExpression>[] vecAggrClasses;
+ if (aggregationName.equals("ds_kll_sketch")) {
Review Comment:
could we create an enum for the supportedAggregationUdfs?
Issue Time Tracking
-------------------
Worklog Id: (was: 820027)
Time Spent: 1h 50m (was: 1h 40m)
> Add vectorized implementation of the 'ds_kll_sketch' UDAF
> ---------------------------------------------------------
>
> Key: HIVE-26243
> URL: https://issues.apache.org/jira/browse/HIVE-26243
> Project: Hive
> Issue Type: Improvement
> Components: UDF, Vectorization
> Affects Versions: 4.0.0-alpha-2
> Reporter: Alessandro Solimando
> Assignee: Alessandro Solimando
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> _ds_kll_sketch_ UDAF does not have a vectorized implementation at the moment,
> the present ticket aims at bridging this gap.
> This is particularly important because vectorization has an "all or nothing"
> approach, so if this function is used at the side of vectorized functions,
> they won't be able to benefit from vectorized execution.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)