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

feat: Implement From NaiveDate for AnyValue #21255

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eranfu
Copy link

@eranfu eranfu commented Feb 14, 2025

No description provided.

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Feb 14, 2025
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 79.80%. Comparing base (0654544) to head (cb3c3cd).
Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-core/src/datatypes/any_value.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21255      +/-   ##
==========================================
- Coverage   79.88%   79.80%   -0.09%     
==========================================
  Files        1593     1596       +3     
  Lines      227754   228471     +717     
  Branches     2600     2607       +7     
==========================================
+ Hits       181937   182322     +385     
- Misses      45220    45553     +333     
+ Partials      597      596       -1     

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

@@ -1708,6 +1710,12 @@ impl From<bool> for AnyValue<'static> {
}
}

impl From<NaiveDate> for AnyValue<'static> {
Copy link
Member

Choose a reason for hiding this comment

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

Can we actually use this code somewhere in Polars.

If we add it, we should also replace the code where we did this manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants