Skip to content

refactor: default equality operators for statistic file structs#202

Merged
Fokko merged 1 commit intoapache:mainfrom
smaheshwar-pltr:default-stat-equality
Sep 1, 2025
Merged

refactor: default equality operators for statistic file structs#202
Fokko merged 1 commit intoapache:mainfrom
smaheshwar-pltr:default-stat-equality

Conversation

@smaheshwar-pltr
Copy link
Copy Markdown
Contributor

Elsewhere in the project, equality operators are defaulted e.g.

bool operator==(const ManifestFile& other) const = default;

I think for consistency, the src/iceberg/statistics_file.h equality operators can be defaulted too, as they do memberwise comparisons using each type's operator==.

(I'm new to this project, so please take with a pinch of salt 😄)

Copy link
Copy Markdown
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

+1 Thanks!

Copy link
Copy Markdown
Collaborator

@zhjwpku zhjwpku left a comment

Choose a reason for hiding this comment

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

+1

@Fokko
Copy link
Copy Markdown
Contributor

Fokko commented Sep 1, 2025

Nice one @smaheshwar-pltr and thanks for the review @wgtmac and @zhjwpku

@Fokko Fokko merged commit aec5acf into apache:main Sep 1, 2025
7 checks passed
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.

4 participants