Skip to content

Conversation

@OussamaSaoudi
Copy link
Collaborator

@OussamaSaoudi OussamaSaoudi commented Jul 31, 2025

What changes are proposed in this pull request?

This PR fixes a test that fails on an error message to work across all arrow versions. the error message depends on the Debug print of arrow type. Due to this commit, the debug print result differs between arrow versions.

How was this change tested?

existing unit tests.

Indentation was tested by breaking a test and checking that the error message is easy to read.

Err(error) => {
let error_str = error.to_string();
assert!(
error_str.contains(message),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

was this previously a fuzzy str.contains? Thats the only explanation I could see for why this wasn't caught 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

from my experience, it returned true for exact substring matches (e.g. when i was writing error messages, I had to pass in the exact substring), sooo i don't think it is fuzzy?

@OussamaSaoudi OussamaSaoudi marked this pull request as draft July 31, 2025 18:15
@OussamaSaoudi OussamaSaoudi marked this pull request as ready for review July 31, 2025 20:53
@codecov
Copy link

codecov bot commented Jul 31, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 83.55%. Comparing base (04f412b) to head (257cbe7).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
kernel/src/utils.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1135      +/-   ##
==========================================
- Coverage   83.56%   83.55%   -0.02%     
==========================================
  Files          97       97              
  Lines       23024    23024              
  Branches    23024    23024              
==========================================
- Hits        19241    19238       -3     
- Misses       2793     2794       +1     
- Partials      990      992       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

),
"Invalid argument error: Incorrect datatype. Expected Struct(metadata Binary, value Binary), got Struct(field_1 Binary, field_2 Binary)",
// Arrow has different printing for different versions. We use the common prefix
"Invalid argument error: Incorrect datatype. Expected Struct",
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we add a TODO to revert it to the actual error message after we normalize on arrow 55.1+?

Copy link
Collaborator

Choose a reason for hiding this comment

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

like zach's comment, i think a todo comment would be nice

Copy link
Collaborator

@joonyoo181 joonyoo181 left a comment

Choose a reason for hiding this comment

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

I think adding the todo from Zach's comment would be nice. But otherwise, LGTM!

),
"Invalid argument error: Incorrect datatype. Expected Struct(metadata Binary, value Binary), got Struct(field_1 Binary, field_2 Binary)",
// Arrow has different printing for different versions. We use the common prefix
"Invalid argument error: Incorrect datatype. Expected Struct",
Copy link
Collaborator

Choose a reason for hiding this comment

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

like zach's comment, i think a todo comment would be nice

Copy link
Collaborator

@zachschuermann zachschuermann left a comment

Choose a reason for hiding this comment

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

LGTM

@OussamaSaoudi OussamaSaoudi merged commit 81f3e71 into delta-io:main Aug 4, 2025
19 of 21 checks passed
OussamaSaoudi added a commit to OussamaSaoudi/delta-kernel-rs that referenced this pull request Aug 8, 2025
…#1135)

## What changes are proposed in this pull request?
This PR fixes a test that fails on an error message to work across all
arrow versions. the error message depends on the Debug print of arrow
type. Due to this
[commit](apache/arrow-rs#7469), the debug print
result differs between arrow versions.

 
## How was this change tested?
existing unit tests.

Indentation was tested by breaking a test and checking that the error
message is easy to read.
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