Skip to content

Fix equality comparison between Row::Ptr and Row::Ref#2914

Merged
jsdt merged 5 commits into
masterfrom
jsdt/row-eq
Jul 7, 2025
Merged

Fix equality comparison between Row::Ptr and Row::Ref#2914
jsdt merged 5 commits into
masterfrom
jsdt/row-eq

Conversation

@jsdt
Copy link
Copy Markdown
Contributor

@jsdt jsdt commented Jul 3, 2025

Description of Changes

The derived PartialEq always considers Ptr and Ref to be different, even if the values are the same.

This fixes the errors from this repro.

Expected complexity level and risk

Testing

Some more direct testing would be nice, but being able to create Rows is not that easy. Right now this has some indirect code coverage, since it broke some tests.

@jsdt jsdt requested a review from joshua-spacetime July 3, 2025 16:55
Copy link
Copy Markdown
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

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

Ah yeah; this impl exists for RelValue but it seems it didn't make it to Row.

I agree it would be good to add a test though, so let's merge when that is in.

Comment thread crates/execution/src/lib.rs
@joshua-spacetime
Copy link
Copy Markdown
Contributor

I think test_join_pruning was waiting on line 2330:

assert_tx_update_for_table(&mut rx, u_id, &schema, [], []).await;

because the transaction no longer returns any row updates, so you can remove this check.

Copy link
Copy Markdown
Contributor

@joshua-spacetime joshua-spacetime left a comment

Choose a reason for hiding this comment

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

We should have already had test coverage for this, but unfortunately the test in question was broken. It's fixed now though.

@jsdt jsdt marked this pull request as ready for review July 4, 2025 02:13
@jsdt jsdt added this pull request to the merge queue Jul 7, 2025
Merged via the queue into master with commit 5770386 Jul 7, 2025
20 checks passed
@joshua-spacetime joshua-spacetime deleted the jsdt/row-eq branch November 19, 2025 23:35
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