-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
batches_to_sort_string
differing from similar implementation in assert_batches_sorted_eq
#15312
Comments
Hey, I think this is happening because When I was working on that, I manually verified the new lines make sense. Alternatively, you can explore #15165 (comment) and https://docs.rs/insta/latest/insta/fn.sorted_redaction.html Context: #15165 (comment) |
* Basic setup done for physical plan insta tests * Migrated tests to insta in aggregate/mod.rs * Migrated tests to insta in aggregate/topk/priority_map.rs * Migrated tests to insta in joins * Fallback to previous implementation in a test due to an issue (#15312) * Fix formatting * Update Cargo.toml * Revert any Cargo.lock changes * Clean workspace and attempt fixing failing build test * format Cargo.toml * Add insta as a dev-dependency instead * Update datafusion/physical-plan/src/aggregates/mod.rs Co-authored-by: Dmitrii Blaginin <dmitrii@blaginin.me> * Preserved comments from aggregates/mod.rs * Resolved errors regarding dependencies and formatting --------- Co-authored-by: Dmitrii Blaginin <dmitrii@blaginin.me>
I am facing yet another issue same as mentioned in the following PR: |
TLDR is I think this is "working as expected" (though somewhat confusing) and we can just refer to this ticket when migrating tests to |
Describe the bug
I was migrating tests to
insta
in a PR #15248 and got a problem. For same expected output in a test, I was finding differing old and new snapshots while usingbatches_to_sort_string
and no differing snapshots while usingassert_batches_sorted_eq
. I did not encounter this issue while migrating many other tests in/datafusion/physical-plan
, this weirdly was the first time I encountered this issue.Edit: Also referencing at the following PR comment #15288 (comment) . This is also a problem discovered so far.
Previous code (using assert_batches_sorted_eq) :
New code (using batches_to_sort_string) :
In both cases, I had made sure several times that the expected output is the same.
I am getting the following output while using new code:

To Reproduce
In
/datafusion/physical-plan/src/joins/hash_join.rs
,replace following part in
async fn join_full_with_filter(batch_size: usize) -> Result<()>
:with
Expected behavior
Similar results for both the tests.
Additional context
I did not encounter this issue while migrating many other tests in
/datafusion/physical-plan
, this weirdly was the first time I encountered this issue.The text was updated successfully, but these errors were encountered: