Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Apr 29, 2021

Closes #222

Shout out to @tustvold who noticed this first.

Rationale for this change

  1. remove code duplication
  2. Improve data type support for Case statement by using standard Arrow

What changes are included in this PR?

Delete code and use arrow implementation

Are there any user-facing changes?

no

@alamb
Copy link
Contributor Author

alamb commented Apr 29, 2021

Build is failing due to apache/arrow-rs#238, which @ritchie46 has a PR up for 👍

Copy link
Contributor

@Dandandan Dandandan left a comment

Choose a reason for hiding this comment

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

😎 this will probably a bit faster as well (avoiding the builder)

Copy link
Member

@jorgecarleitao jorgecarleitao left a comment

Choose a reason for hiding this comment

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

Great; much easier to read also. Thanks a lot, @alamb !

@alamb
Copy link
Contributor Author

alamb commented Apr 30, 2021

rebasing to pick up flatbuffers fix

@alamb alamb force-pushed the alamb/less_redundancy branch from 029ea7f to cc7cd92 Compare April 30, 2021 10:11
@codecov-commenter
Copy link

Codecov Report

Merging #223 (cc7cd92) into master (2423ff0) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #223      +/-   ##
==========================================
+ Coverage   76.43%   76.46%   +0.02%     
==========================================
  Files         135      135              
  Lines       23264    23250      -14     
==========================================
- Hits        17782    17777       -5     
+ Misses       5482     5473       -9     
Impacted Files Coverage Δ
datafusion/src/physical_plan/expressions/case.rs 75.84% <100.00%> (+2.92%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2423ff0...cc7cd92. Read the comment docs.

@jorgecarleitao jorgecarleitao merged commit 23d02bb into apache:master Apr 30, 2021
@alamb alamb deleted the alamb/less_redundancy branch October 6, 2022 18:29
H0TB0X420 pushed a commit to H0TB0X420/datafusion that referenced this pull request Oct 7, 2025
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.

Use standard make_null_array for CASE

5 participants