Skip to content

Commit

Permalink
replace GlutenNotSupportException
Browse files Browse the repository at this point in the history
  • Loading branch information
WangGuangxin committed Mar 20, 2024
1 parent 727a9f7 commit be6db9d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package org.apache.spark.sql.hive

import io.glutenproject.exception.GlutenNotSupportException
import io.glutenproject.expression.{ExpressionConverter, ExpressionTransformer, GenericExpressionTransformer, UDFMappings}

import org.apache.spark.sql.catalyst.expressions._
Expand All @@ -39,7 +40,7 @@ object HiveUDFTransformer {
case g: HiveGenericUDF =>
g.name.stripPrefix("default.")
case _ =>
throw new UnsupportedOperationException(
throw new GlutenNotSupportException(
s"Expression $expr is not a HiveSimpleUDF or HiveGenericUDF")
}

Expand All @@ -50,7 +51,7 @@ object HiveUDFTransformer {
ExpressionConverter.replaceWithExpressionTransformer(expr.children, attributeSeq),
expr)
case _ =>
throw new UnsupportedOperationException(
throw new GlutenNotSupportException(
s"Not supported hive udf:$expr"
+ s" name:$udfName hiveUDFMap:${UDFMappings.hiveUDFMap}")
}
Expand Down

0 comments on commit be6db9d

Please sign in to comment.