Skip to content

Commit

Permalink
Fix fallback for concat_ws
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Nov 3, 2023
1 parent 454bd16 commit 8f31ceb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ case class ConcatWsTransformer(
extends ExpressionTransformer {

override def doTransform(args: java.lang.Object): ExpressionNode = {
if (!children.head.isInstanceOf[StringLiteralNode]) {
throw new UnsupportedOperationException(s"$original not supported yet.")
if (!children.head.isInstanceOf[LiteralTransformer]) {
throw new UnsupportedOperationException(
s"$original only supports literal separator as its first argument.")
}
GenericExpressionTransformer(substraitExprName, children, original)
.doTransform(args)
Expand Down

0 comments on commit 8f31ceb

Please sign in to comment.