Skip to content

Partial eq variant no validation#7957

Closed
abacef wants to merge 3 commits intoapache:mainfrom
abacef:partial_eq_variant_no_validation
Closed

Partial eq variant no validation#7957
abacef wants to merge 3 commits intoapache:mainfrom
abacef:partial_eq_variant_no_validation

Conversation

@abacef
Copy link
Copy Markdown
Contributor

@abacef abacef commented Jul 17, 2025

Which issue does this PR close?

We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax.

Rationale for this change

Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.

What changes are included in this PR?

There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.

Are these changes tested?

We typically require tests for all PRs in order to:

  1. Prevent the code from being accidentally broken by subsequent changes
  2. Serve as another way to document the expected behavior of the code

If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?

Added tests for metadata, list, and object

Are there any user-facing changes?

If there are user-facing changes then we may require documentation to be updated before approving the PR.

If there are any breaking changes to public APIs, please call them out.

It depends on if this goes in the same release as the other partial equal changes to variant

@github-actions github-actions Bot added the parquet Changes to the parquet crate label Jul 17, 2025
self.is_empty() == other.is_empty() && self.first_value_byte == other.first_value_byte;

let other_field_names: HashSet<&'m str> = HashSet::from_iter(other.iter());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there any chance that other_field_names contains items not in self.iter()

}

#[test]
fn metadata_is_equal() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we need to add some negative tests

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Jul 22, 2025

Thank you for this PR @abacef -- I am sorry I did not see it earlier.

I think this is somewhat duplicated by this PR from @friendlymatthew

@abacef
Copy link
Copy Markdown
Contributor Author

abacef commented Jul 22, 2025

If you think that PR is more comprehensive or at a more refined stage, go ahead with that instead

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Jul 24, 2025

If you think that PR is more comprehensive or at a more refined stage, go ahead with that instead

I am not quite sure -- this PR has accumulated a few conflicts. If you think it has additional value, feel free to resolve the conflicts and ping me for a review

Thanks again

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Jul 29, 2025

Converting to draft to make it clear this one isn't waiting on feedback

Please feel free to mark it ready for review when it is ready for another look

@alamb alamb marked this pull request as draft July 29, 2025 20:02
@abacef
Copy link
Copy Markdown
Contributor Author

abacef commented Aug 8, 2025

@alamb the issue that this closes is completed and mostly changes the functions that I wrote. Is there any more equality code that needs to be written?

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Aug 12, 2025

I don't think so -- let's just close this PR for now

@alamb alamb closed this Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

validated and is_fully_validated flags doesn't need to be part of PartialEq

3 participants