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

fix(cubesql) Fix CASE type with NULL values #7672

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

MazterQyou
Copy link
Member

@MazterQyou MazterQyou commented Jan 19, 2024

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made

This PR fixes an issue with CASE expressions having an incorrect type due to picking the first value among the selection which might be NULL (Utf8 type). NULL is now interpreted as ScalarValue::Null, allowing coercions of the latter with most of the types. Related test is included.

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

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

Comparison is base (64a7ebd) 72.85% compared to head (67960e6) 72.83%.

Files Patch % Lines
rust/cubesql/cubesql/src/compile/engine/udf.rs 57.14% 6 Missing ⚠️
...st/cubesql/cubesql/src/compile/engine/df/coerce.rs 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7672      +/-   ##
==========================================
- Coverage   72.85%   72.83%   -0.03%     
==========================================
  Files         335      335              
  Lines       56945    56996      +51     
  Branches     5238     5238              
==========================================
+ Hits        41490    41511      +21     
- Misses      15261    15291      +30     
  Partials      194      194              
Flag Coverage Δ
cube-backend 47.97% <ø> (ø)
cubesql 87.23% <74.28%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@MazterQyou MazterQyou force-pushed the cubesql/case-expr-type branch from 759c675 to 8172d01 Compare February 5, 2024 15:06
Copy link

vercel bot commented Feb 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-react-d3 🔄 Building (Inspect) Visit Preview 💬 Add feedback Feb 5, 2024 3:46pm
7 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2024 3:46pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2024 3:46pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2024 3:46pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2024 3:46pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2024 3:46pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2024 3:46pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2024 3:46pm

@MazterQyou MazterQyou marked this pull request as ready for review February 5, 2024 15:06
@MazterQyou MazterQyou requested review from a team as code owners February 5, 2024 15:06
@MazterQyou MazterQyou force-pushed the cubesql/case-expr-type branch from 8172d01 to 67960e6 Compare February 5, 2024 15:45
@MazterQyou MazterQyou merged commit 2b7cc30 into master Feb 5, 2024
54 of 55 checks passed
@MazterQyou MazterQyou deleted the cubesql/case-expr-type branch February 5, 2024 16:06
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.

2 participants