Skip to content

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 hntd187 and nicklan September 25, 2024 15:35
@codecov
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
Member

@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