Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
[NSE-602] don't enable columnar shuffle on unsupported data types (#608)
Browse files Browse the repository at this point in the history
* dont enable columanr shuffle on unsupported data types

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>

* Update native-sql-engine/core/src/main/scala/org/apache/spark/sql/execution/ColumnarShuffleExchangeExec.scala
  • Loading branch information
zhouyuan authored Dec 7, 2021
1 parent 59cd692 commit 631b587
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ case class ColumnarShuffleExchangeExec(
// check input datatype
for (attr <- child.output) {
try {
ConverterUtils.createArrowField(attr)
ConverterUtils.checkIfTypeSupported(attr.dataType)
} catch {
case e: UnsupportedOperationException =>
throw new UnsupportedOperationException(
s"${attr.dataType} is not supported in ColumnarShuffleExchange")
s"${attr.dataType} is not supported in ColumnarShuffledExchangeExec.")
}
}
}
Expand Down

0 comments on commit 631b587

Please sign in to comment.