Skip to content

[FLINK-38397][table] Fix stale sort trait on BatchPhysicalLocalHashAggregate causing ArrayIndexOutOfBoundsException#28004

Open
Au-Miner wants to merge 1 commit intoapache:masterfrom
Au-Miner:fix/38397
Open

[FLINK-38397][table] Fix stale sort trait on BatchPhysicalLocalHashAggregate causing ArrayIndexOutOfBoundsException#28004
Au-Miner wants to merge 1 commit intoapache:masterfrom
Au-Miner:fix/38397

Conversation

@Au-Miner
Copy link
Copy Markdown
Contributor

What is the purpose of the change

Fix stale sort trait on BatchPhysicalLocalHashAggregate causing ArrayIndexOutOfBoundsException

Brief change log

  • Reset the collation in localRequired RaitSet to null (EMPTY), as hash aggregation does not preserve input order, avoiding outdated collation in local aggregation operations

Verifying this change

This change is verified by new and existing tests in AggregateTest and AggregateTest.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

…gregate causing ArrayIndexOutOfBoundsException
@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented Apr 23, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants