Skip to content
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

Improve debug output of Time32/Time64 arrays #5428

Merged
merged 4 commits into from
Feb 27, 2024
Merged

Conversation

monkwire
Copy link
Contributor

Which issue does this PR close?

Closes #5336 .

Rationale for this change

This change makes the debug output of Time32/Time64 arrays more descriptive.

What changes are included in this PR?

This PR changes the way Time32 and Time64 arrays are printed to debug. Previously, values that could not be cast to Time32 or Time64 had debug output values of null. With this change, unsuccessful casts are included as errors in the debug output.

Are there any user-facing changes?

Yes, the debug output for Time32 and Time64 arrays will change.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Feb 26, 2024
Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

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

Just a minor suggestion, otherwise this looks good to me thank you

arrow-array/src/array/primitive_array.rs Outdated Show resolved Hide resolved
arrow-array/src/array/primitive_array.rs Outdated Show resolved Hide resolved
monkwire and others added 2 commits February 26, 2024 00:00
Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com>
Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com>
@monkwire
Copy link
Contributor Author

Thanks, you are right, that looks better.

@monkwire monkwire closed this Feb 26, 2024
@monkwire monkwire reopened this Feb 26, 2024
@tustvold
Copy link
Contributor

I took the liberty of fixing the compilation errors in order to get this in

@monkwire
Copy link
Contributor Author

Thank you!

@tustvold tustvold merged commit 37cf8a6 into apache:master Feb 27, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug output of Time32/Time64 arrays with invalid values has confusing nulls
2 participants