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: Support casting Utf8 to Interval #29

Merged
merged 7 commits into from
Dec 8, 2023

Conversation

MazterQyou
Copy link
Member

@MazterQyou MazterQyou commented Dec 8, 2023

This PR cherry-picks upstream commits to add support for Utf8 to Interval casting.
It also fixes a few issues with CI:

  • Bumps the Rust toolchain to match the version currently used by cubesql
  • Locks lower versions of dependencies in Cargo.toml to pass CI for packages without Cargo.lock
  • Updates Python version from 3.9 to 3.11 for the docs workflow
  • Fixed panic message to not depend on Rust version
  • Switched packed_simd crate to a buildable one

avantgardnerio and others added 2 commits December 5, 2023 10:17
* cast string to interval

* cast string to interval

* unit tests

* fix

* update

* code clean

* update unit tests and align_interval_parts

* fix ut

* make clippy happy

* Update arrow-cast/src/parse.rs

Co-authored-by: Raphael Taylor-Davies <[email protected]>

* change return types of calculate_from_part and fix bug of align_interval_parts

* make clippy happy

* remote useless overflow check

* remove the "convert to higher units" logic

---------

Co-authored-by: Raphael Taylor-Davies <[email protected]>
@github-actions github-actions bot added the arrow label Dec 8, 2023
@MazterQyou MazterQyou force-pushed the cubesql-cast-utf8-to-interval branch 2 times, most recently from aa79de7 to cade622 Compare December 8, 2023 14:18
@MazterQyou MazterQyou force-pushed the cubesql-cast-utf8-to-interval branch 3 times, most recently from f78d269 to 0220bc1 Compare December 8, 2023 15:18
@codecov-commenter
Copy link

codecov-commenter commented Dec 8, 2023

Codecov Report

Attention: 23 lines in your changes are missing coverage. Please review.

Comparison is base (096ef28) 82.85% compared to head (de2ddd9) 82.76%.

❗ Current head de2ddd9 differs from pull request most recent head f4c88de. Consider uploading reports for the commit f4c88de to get more accurate results

Files Patch % Lines
arrow/src/datatypes/types.rs 50.00% 11 Missing ⚠️
arrow/src/compute/kernels/cast_utils.rs 92.74% 9 Missing ⚠️
arrow/src/compute/kernels/cast.rs 97.24% 3 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           cubesql-v11.1.0      #29      +/-   ##
===================================================
- Coverage            82.85%   82.76%   -0.10%     
===================================================
  Files                  190      190              
  Lines                55023    55351     +328     
===================================================
+ Hits                 45592    45811     +219     
- Misses                9431     9540     +109     

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

@MazterQyou MazterQyou force-pushed the cubesql-cast-utf8-to-interval branch from 0220bc1 to f4c88de Compare December 8, 2023 15:52
@MazterQyou MazterQyou merged commit 2922390 into cubesql-v11.1.0 Dec 8, 2023
30 checks passed
@MazterQyou MazterQyou deleted the cubesql-cast-utf8-to-interval branch December 8, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants