Alessandro Solimando created HIVE-26572:
-------------------------------------------
Summary: Support constant expressions in vectorized expressions
Key: HIVE-26572
URL: https://issues.apache.org/jira/browse/HIVE-26572
Project: Hive
Issue Type: Improvement
Components: Vectorization
Affects Versions: 4.0.0-alpha-2
Reporter: Alessandro Solimando
At the moment, we cannot vectorize aggregate expression having constant
parameters in addition to the aggregation column (it's forbidden
[here|https://github.com/apache/hive/blob/c19d56ec7429bfcfad92b62ac335dbf8177dab24/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java#L4531]).
One compelling example of how this could help is [PR
1824|https://github.com/apache/hive/pull/1824], linked to HIVE-24510, where
_compute_bit_vector_ had to be split into _compute_bit_vector_hll_ +
_compute_bit_vector_fm_ when HLL implementation has been added, while
_compute_bit_vector($col, ['HLL'|'FM'])_ could have been used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)