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

[chore] Use primitive type shortcuts in match arms #356

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

scovich
Copy link
Collaborator

@scovich scovich commented Sep 25, 2024

We already have constants like DataType::LONG that can avoid boilerplate like DataType::Primitive(PrimitiveType::Long), and such constants can be used in match arms. Update the code to use them.

@scovich scovich requested review from nicklan and hntd187 September 25, 2024 15:35
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 29.16667% with 17 lines in your changes missing coverage. Please review.

Project coverage is 74.15%. Comparing base (b4e5403) to head (3fd8ad1).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
kernel/src/engine/arrow_conversion.rs 20.00% 16 Missing ⚠️
kernel/src/schema.rs 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #356      +/-   ##
==========================================
- Coverage   74.17%   74.15%   -0.03%     
==========================================
  Files          43       43              
  Lines        8187     8180       -7     
  Branches     8187     8180       -7     
==========================================
- Hits         6073     6066       -7     
  Misses       1734     1734              
  Partials      380      380              

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

Copy link
Collaborator

@nicklan nicklan left a comment

Choose a reason for hiding this comment

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

thanks!

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 :)

@scovich
Copy link
Collaborator Author

scovich commented Sep 27, 2024

It looks like codecov is complaining because my changes happened to hit code with poor test coverage. Since there are no functional changes here (compilation suffices) I'm going ahead with merge anyway.

@scovich scovich merged commit da206ed into delta-io:main Sep 27, 2024
10 of 12 checks passed
nicklan pushed a commit to nicklan/delta-kernel-rs that referenced this pull request Oct 2, 2024
We already have constants like `DataType::LONG` that can avoid
boilerplate like `DataType::Primitive(PrimitiveType::Long)`, and such
constants can be used in match arms. Update the code to use them.
nicklan added a commit to nicklan/delta-kernel-rs that referenced this pull request Oct 2, 2024
@scovich scovich deleted the primitive-match-arms branch November 8, 2024 21:00
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.

4 participants