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 creating array of array #2299

Merged
merged 10 commits into from
May 19, 2021
Merged

Conversation

wbo4958
Copy link
Collaborator

@wbo4958 wbo4958 commented Apr 29, 2021

This PR is for #2011

Currently, Cudf only supports creating 1D or 2D array, See rapidsai/cudf#8046

@@ -481,6 +481,20 @@ public static DType getNonNestedRapidsType(DataType type) {
return result;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Java docs?

We shouldn't need to add this method, if you follow my suggestion

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, make sense.

@sameerz sameerz added the feature request New feature or request label Apr 29, 2021
@sameerz sameerz added this to the Apr 26 - May 7 milestone Apr 29, 2021
@wbo4958 wbo4958 self-assigned this May 10, 2021
@wbo4958 wbo4958 changed the title [WIP] add support for array of array add support for array of array May 11, 2021
@sameerz sameerz linked an issue May 11, 2021 that may be closed by this pull request
@wbo4958
Copy link
Collaborator Author

wbo4958 commented May 12, 2021

build

1 similar comment
@wbo4958
Copy link
Collaborator Author

wbo4958 commented May 12, 2021

build

@wbo4958
Copy link
Collaborator Author

wbo4958 commented May 13, 2021

build

@pxLi pxLi changed the base branch from branch-0.6 to branch-21.06 May 19, 2021 01:12
@wbo4958 wbo4958 force-pushed the array-of-array branch 2 times, most recently from bc8c2a5 to cbdbc3d Compare May 19, 2021 11:16
@wbo4958 wbo4958 changed the title add support for array of array support creating array of array May 19, 2021
@revans2
Copy link
Collaborator

revans2 commented May 19, 2021

Can we please not rebase. It can really confuse github with outstanding commits. Just merge.


override def tagExprForGpu(): Unit = {
wrapped.dataType match {
case ArrayType(ArrayType(ArrayType(_, _), _), _) =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where did this limitation come from? Does cudf only support so much nesting?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tested like array(array(array(a))) and libcudf will throw the exception, I read the PR for making list and found there is a comment in Currently, only lists columns of one depth level are supported. rapidsai/cudf#8046

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you file a follow on issue for more deeply nested? It is not something we have to work on. I just want to be sure that it is documented.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure, filed the following issue #2453

@wbo4958
Copy link
Collaborator Author

wbo4958 commented May 19, 2021

build

@wbo4958
Copy link
Collaborator Author

wbo4958 commented May 19, 2021

build

@revans2
Copy link
Collaborator

revans2 commented May 19, 2021

Please do not rebase your patch. Just merge in the new branch. It is much less likely to confuse github.

@wbo4958 wbo4958 merged commit 009b903 into NVIDIA:branch-21.06 May 19, 2021
@wbo4958 wbo4958 deleted the array-of-array branch May 19, 2021 22:31
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
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 creation of 2D array type
5 participants