-
Notifications
You must be signed in to change notification settings - Fork 915
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
Handle empty results with nested types in copy_if_else #8359
Handle empty results with nested types in copy_if_else #8359
Conversation
rerun tests |
/** | ||
* @brief Initializes and returns an empty column of the same type as the `input`. | ||
* | ||
* @param[in] input Scalar to emulate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need [in]
.
Rerun tests. |
@gpucibot merge |
Rerun tests. |
3 similar comments
Rerun tests. |
Rerun tests. |
Rerun tests. |
Codecov Report
@@ Coverage Diff @@
## branch-21.06 #8359 +/- ##
===============================================
Coverage ? 82.86%
===============================================
Files ? 106
Lines ? 17874
Branches ? 0
===============================================
Hits ? 14811
Misses ? 3063
Partials ? 0 Continue to review full report at Codecov.
|
Fixes: #8322
The code was calling
make_empty_column()
to produce empty results, which does not work for nested types. Fix was to useempty_like()
instead.As part of this, I implemented a new public function:
std::unique_ptr<column> empty_like(scalar const& input);