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

Support array_repeat #5293

Merged
merged 7 commits into from
Apr 29, 2022
Merged

Conversation

sperlingxx
Copy link
Collaborator

Signed-off-by: sperlingxx lovedreamf@gmail.com

Closes #5226

This PR is to support array_repeat, which relies on unmerged cuDF PR(rapidsai/cudf#10683).
The primary issue of array_repeat is to workaround the null and negative count values, which are supported by Spark but invalid in cuDF repeat.

Signed-off-by: sperlingxx <lovedreamf@gmail.com>
@sameerz sameerz added the feature request New feature or request label Apr 21, 2022
@sameerz sameerz added this to the Apr 18 - Apr 29 milestone Apr 21, 2022
}
}
// Step 3. generate list offsets from refined counts
val offsets = withResource(refinedCount) { cnt =>
Copy link
Member

Choose a reason for hiding this comment

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

Speaking of "what if something throws?", repeated is unprotected here -- if computing the offsets causes an exception we don't close it here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I added the missing the closeOnEx wrapper for repeated

@sperlingxx sperlingxx changed the title [DRAFT] Support array_repeat Support array_repeat Apr 27, 2022
@sperlingxx
Copy link
Collaborator Author

build

@sperlingxx sperlingxx requested a review from revans2 April 28, 2022 01:17
@sperlingxx
Copy link
Collaborator Author

build

@sperlingxx
Copy link
Collaborator Author

build

1 similar comment
@sperlingxx
Copy link
Collaborator Author

build

@sperlingxx sperlingxx merged commit 527a984 into NVIDIA:branch-22.06 Apr 29, 2022
@sperlingxx sperlingxx deleted the array_repeat branch April 29, 2022 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Support array_repeat
5 participants