Skip to content

HIVE-30133: Vectorized ReduceSink hashes a repeating partition key for every row - #6845

Open
deniskuzZ wants to merge 1 commit into
apache:masterfrom
deniskuzZ:HIVE-30133
Open

deniskuzZ wants to merge 1 commit into
apache:masterfrom
deniskuzZ:HIVE-30133

Conversation

@deniskuzZ

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

  • VectorReduceSinkObjectHashOperator computes the partition hashCode once per batch when every partition column repeats; the bucket number and _bucket_number stay per row

Why are the changes needed?

Optimization

Does this PR introduce any user-facing change?

No

How was this patch tested?

TestVectorReduceSinkObjectHashOperator: rows with repeating and with flattened partition columns get the same hashCode

…r every row

- VectorReduceSinkObjectHashOperator computes the partition hashCode once per batch when every partition column
  repeats; the bucket number and _bucket_number stay per row
- TestVectorReduceSinkObjectHashOperator: rows with repeating and with flattened partition columns get the same hashCode
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants