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

Handle empty results with nested types in copy_if_else #8359

Merged

Conversation

nvdbaranec
Copy link
Contributor

Fixes: #8322

The code was calling make_empty_column() to produce empty results, which does not work for nested types. Fix was to use empty_like() instead.

As part of this, I implemented a new public function:

std::unique_ptr<column> empty_like(scalar const& input);

@nvdbaranec nvdbaranec added bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels May 25, 2021
@nvdbaranec nvdbaranec requested a review from a team as a code owner May 25, 2021 21:40
@nvdbaranec
Copy link
Contributor Author

rerun tests

/**
* @brief Initializes and returns an empty column of the same type as the `input`.
*
* @param[in] input Scalar to emulate
Copy link
Contributor

Choose a reason for hiding this comment

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

No need [in].

@ttnghia ttnghia assigned ttnghia and nvdbaranec and unassigned ttnghia May 26, 2021
@ttnghia
Copy link
Contributor

ttnghia commented May 26, 2021

Rerun tests.

@ttnghia
Copy link
Contributor

ttnghia commented May 26, 2021

@gpucibot merge

@ttnghia
Copy link
Contributor

ttnghia commented May 26, 2021

Rerun tests.

3 similar comments
@ttnghia
Copy link
Contributor

ttnghia commented May 26, 2021

Rerun tests.

@ttnghia
Copy link
Contributor

ttnghia commented May 26, 2021

Rerun tests.

@ttnghia
Copy link
Contributor

ttnghia commented May 26, 2021

Rerun tests.

@codecov
Copy link

codecov bot commented May 27, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.06@6db757b). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 8ba5a49 differs from pull request most recent head 1c0ba84. Consider uploading reports for the commit 1c0ba84 to get more accurate results
Impacted file tree graph

@@               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.

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

@rapids-bot rapids-bot bot merged commit 3ee8893 into rapidsai:branch-21.06 May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] copy_if_else can throw for nested types corner case
5 participants