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

Fix build warnings for ColumnViewAccess #555

Merged
merged 2 commits into from
Aug 14, 2020

Conversation

kuhushukla
Copy link
Collaborator

Signed-off-by: Kuhu Shukla kuhus@nvidia.com

This fixes #553 by adding the type we expect ColumnVectors to have. Appreciate any comments if there is a better way to do this.

Signed-off-by: Kuhu Shukla <kuhus@nvidia.com>
@kuhushukla kuhushukla added bug Something isn't working build Related to CI / CD or cleanly building labels Aug 13, 2020
@kuhushukla kuhushukla added this to the Aug 3 - Aug 14 milestone Aug 13, 2020
@kuhushukla kuhushukla self-assigned this Aug 13, 2020
@@ -198,10 +199,10 @@ static final DataType getSparkType(DType type) {
}
}

protected static final DataType getSparkTypeFrom(ColumnViewAccess access) {
protected static final DataType getSparkTypeFrom(ColumnViewAccess<BaseDeviceMemoryBuffer> access) {
Copy link
Member

Choose a reason for hiding this comment

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

Will we never need to call this method from host column vectors?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding this call to host side is not on the cards right now. Also, since this call is coming from column vector, which will always have device memory buffers at least for now, I made this change under this assumption.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe I can just look at ignoring this error. To be safe.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah we could add a warning suppression to allow this to be called from the host side in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good. You got it! Thanks Jason. Updating soon.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You could also make the method generic and not worry about it.

protected static final <T> DataType getSparkTypeFrom(ColumnViewAccess<T> access) { ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry I was out sick yesterday. Sounds good Bobby. Will update in a couple minutes here.

@jlowe
Copy link
Member

jlowe commented Aug 14, 2020

build

@jlowe jlowe merged commit c1d0166 into NVIDIA:branch-0.2 Aug 14, 2020
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
* Fix build warnings for ColumnViewAccess

Signed-off-by: Kuhu Shukla <kuhus@nvidia.com>

* Address review comments

Co-authored-by: Kuhu Shukla <kuhus@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
* Fix build warnings for ColumnViewAccess

Signed-off-by: Kuhu Shukla <kuhus@nvidia.com>

* Address review comments

Co-authored-by: Kuhu Shukla <kuhus@nvidia.com>
tgravescs pushed a commit to tgravescs/spark-rapids that referenced this pull request Nov 30, 2023
…IDIA#555)

Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>

Signed-off-by: spark-rapids automation <70000568+nvauto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Related to CI / CD or cleanly building
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] GpuColumnVector build warnings from raw type access
3 participants