-
Notifications
You must be signed in to change notification settings - Fork 237
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
Throw SparkArrayIndexOutOfBoundsException for Spark 3.3.0+ #4464
Throw SparkArrayIndexOutOfBoundsException for Spark 3.3.0+ #4464
Conversation
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
shims/spark330/src/main/scala/com/nvidia/spark/rapids/shims/spark330/Spark330Shims.scala
Outdated
Show resolved
Hide resolved
shims/spark330/src/main/scala/com/nvidia/spark/rapids/shims/spark330/Spark330Shims.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
shims/spark330/src/main/scala/com/nvidia/spark/rapids/shims/spark330/Spark330Shims.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/330+/scala/org/apache/spark/RapidsSparkIndexOutOfBoundsException.scala
Outdated
Show resolved
Hide resolved
…d class directly Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
...lugin/src/main/301until330-all/scala/com/nvidia/spark/rapids/shims/v2/RapidsErrorUtils.scala
Outdated
Show resolved
Hide resolved
...lugin/src/main/301until330-all/scala/com/nvidia/spark/rapids/shims/v2/RapidsErrorUtils.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/330+/scala/org/apache/spark/RapidsSparkIndexOutOfBoundsException.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/330+/scala/org/apache/spark/RapidsSparkIndexOutOfBoundsException.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GpuElementAt should also use this new exception shim, as Spark is using the same query execption method there.
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
Sorry, I should've caught that. I have added tests for |
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some copyright issues, but otherwise I think this is good
@@ -23,6 +23,7 @@ import ai.rapids.cudf.{ColumnView, GroupByAggregation, GroupByOptions, Scalar} | |||
import com.nvidia.spark.rapids.{GpuBinaryExpression, GpuColumnVector, GpuComplexTypeMergingExpression, GpuLiteral, GpuMapUtils, GpuScalar, GpuUnaryExpression} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2022 copyrights
@@ -19,7 +19,7 @@ package org.apache.spark.sql.rapids | |||
import ai.rapids.cudf.ColumnVector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2022 copyrights
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
Throw
SparkArrayIndexOutOfBoundsException
whenelementAt()
orgetArrayItem()
tries to access out of boundsFixes #4039