Skip to content

[FLINK-39157][table-common] Add ColumnList.hashCode()/equals()#27674

Merged
twalthr merged 3 commits intoapache:masterfrom
twalthr:FLINK-39157
Mar 2, 2026
Merged

[FLINK-39157][table-common] Add ColumnList.hashCode()/equals()#27674
twalthr merged 3 commits intoapache:masterfrom
twalthr:FLINK-39157

Conversation

@twalthr
Copy link
Contributor

@twalthr twalthr commented Feb 25, 2026

What is the purpose of the change

Improves the quality of ColumnList.

Brief change log

  • hashCode/equals
  • error behavior

Verifying this change

This change added tests and can be verified as follows:

  • ColumnListTest

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): yes
  • 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

private ColumnList(List<String> names, List<DataType> dataTypes) {
this.names = Preconditions.checkNotNull(names, "Names must not be null.");
this.dataTypes = Preconditions.checkNotNull(dataTypes, "Data types must be null.");
Preconditions.checkNotNull(names, "Names must not be null.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have a check here that all names are unique?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a requirement for DESCRIPTOR as far as I know

@flinkbot
Copy link
Collaborator

flinkbot commented Feb 25, 2026

CI report:

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

@twalthr twalthr merged commit 861845a into apache:master Mar 2, 2026
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.

3 participants