Skip to content

Commit

Permalink
Concat() Exception bug fix (NVIDIA#11039)
Browse files Browse the repository at this point in the history
* concat_null_bug_fix

Signed-off-by: fejiang <fejiang@nvidia.com>

* concat_null_bug_fix

Signed-off-by: fejiang <fejiang@nvidia.com>

* Setting modified

Signed-off-by: fejiang <fejiang@nvidia.com>

* remove comment

Signed-off-by: fejiang <fejiang@nvidia.com>

* concat considered as empty string

Signed-off-by: fejiang <fejiang@nvidia.com>

---------

Signed-off-by: fejiang <fejiang@nvidia.com>
  • Loading branch information
Feng-Jiang28 authored and SurajAralihalli committed Jul 12, 2024
1 parent 688ac10 commit 2c670cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ case class GpuConcat(children: Seq[Expression]) extends GpuComplexTypeMergingExp

override def columnarEval(batch: ColumnarBatch): GpuColumnVector = {
val res = dataType match {
// Explicitly return null for empty concat as Spark, since cuDF doesn't support empty concat.
case dt if children.isEmpty => GpuScalar.from(null, dt)
// in Spark concat() will be considered as an empty string here
case dt if children.isEmpty => GpuScalar("", dt)
// For single column concat, we pass the result of child node to avoid extra cuDF call.
case _ if children.length == 1 => children.head.columnarEval(batch)
case StringType => stringConcat(batch)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class RapidsTestSettings extends BackendTestSettings {
enableSuite[RapidsMathFunctionsSuite]
enableSuite[RapidsRegexpExpressionsSuite]
enableSuite[RapidsStringExpressionsSuite]
.exclude("concat", KNOWN_ISSUE("https://github.com/NVIDIA/spark-rapids/issues/10775"))
.exclude("string substring_index function", KNOWN_ISSUE("https://github.com/NVIDIA/spark-rapids/issues/10775"))
.exclude("SPARK-22498: Concat should not generate codes beyond 64KB", KNOWN_ISSUE("https://github.com/NVIDIA/spark-rapids/issues/10775"))
.exclude("SPARK-22549: ConcatWs should not generate codes beyond 64KB", KNOWN_ISSUE("https://github.com/NVIDIA/spark-rapids/issues/10775"))
Expand Down

0 comments on commit 2c670cd

Please sign in to comment.