This is an automated email from the ASF dual-hosted git repository. richox pushed a commit to branch dev-v6.0.0-decimal-cast in repository https://gitbox.apache.org/repos/asf/auron.git
commit 264403d7c6fe2467c7a88e9334c9d10427cd721a Author: zhangli20 <[email protected]> AuthorDate: Sat Mar 7 15:14:11 2026 +0800 disable string to decimal cast (https://team.corp.kuaishou.com/task/T10924138) --- .../src/main/scala/org/apache/spark/sql/blaze/NativeConverters.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spark-extension/src/main/scala/org/apache/spark/sql/blaze/NativeConverters.scala b/spark-extension/src/main/scala/org/apache/spark/sql/blaze/NativeConverters.scala index 4a57d474..f798dcee 100644 --- a/spark-extension/src/main/scala/org/apache/spark/sql/blaze/NativeConverters.scala +++ b/spark-extension/src/main/scala/org/apache/spark/sql/blaze/NativeConverters.scala @@ -437,6 +437,8 @@ object NativeConverters extends Logging { case cast: Cast if !Seq(cast.dataType, cast.child.dataType).exists(t => t.isInstanceOf[TimestampType] || t.isInstanceOf[DateType]) => + assert(cast.child.dataType != StringType || !cast.dataType.isInstanceOf[DecimalType], + s"Cast from String to Decimal is not supported in native execution. Expression: ${cast}") buildExprNode { _.setTryCast( pb.PhysicalTryCastNode
