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

[BUG] GpuSequence blows up when nulls exist in any of the inputs (start, stop, step). #10013

Closed
firestarman opened this issue Jan 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@firestarman
Copy link
Contributor

Describe the bug
GpuSequence blows up when nulls exist in any of the inputs (start, stop, step),

Caused by: ai.rapids.cudf.CudfException: cuDF failure at: ../src/lists/sequences.cu:148: steps input column must not have nulls.
  at ai.rapids.cudf.ColumnVector.sequences(Native Method)
  at ai.rapids.cudf.ColumnVector.sequence(ColumnVector.java:533)

but Spark just returns nulls.

+---+---+----------------------+
| _1| _2|sequence(_1, _2, NULL)|
+---+---+----------------------+
|  1|  2|                  null|
|  3|  4|                  null|
+---+---+----------------------+

Steps/Code to reproduce bug
Launch a Spark shell with GPU support, and run
Seq((1, 2), (3, 4)).toDF.repartition(1).selectExpr("*", "sequence(_1, _2, null)").show

Expected behavior
We should keep align with what Spark does for null cases.

@firestarman firestarman added bug Something isn't working Needs Triage Need team to review and classify labels Jan 11, 2022
@firestarman
Copy link
Contributor Author

firestarman commented Jan 11, 2022

Filed the FEA issue #10012 to cudf for this

@firestarman
Copy link
Contributor Author

Close due to wrong project. Here is the right one NVIDIA/spark-rapids#4499

@bdice bdice removed the Needs Triage Need team to review and classify label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants