Skip to content

Commit 36baf8e

Browse files
committed
build: dont use unhex on spark 3.2
1 parent bd07fed commit 36baf8e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎spark/src/main/scala/org/apache/comet/serde/QueryPlanSerde.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ object QueryPlanSerde extends Logging with ShimQueryPlanSerde with CometExprShim
13971397
val optExpr = scalarExprToProto("atan2", leftExpr, rightExpr)
13981398
optExprWithInfo(optExpr, expr, left, right)
13991399

1400-
case e: Unhex =>
1400+
case e: Unhex if !isSpark32 =>
14011401
val unHex = unhexSerde(e)
14021402

14031403
val childExpr = exprToProtoInternal(unHex._1, inputs)

‎spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,8 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
10251025
}
10261026
}
10271027
test("unhex") {
1028+
assume(!isSpark32, "unhex function has incorrect behavior in 3.2")
1029+
10281030
val table = "unhex_table"
10291031
withTable(table) {
10301032
sql(s"create table $table(col string) using parquet")

0 commit comments

Comments
 (0)