Skip to content

Commit

Permalink
Fix NPE in QueryPlanSerde handling of trim expression
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Jun 4, 2024
1 parent 535d4fb commit 493304c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2169,10 +2169,10 @@ object QueryPlanSerde extends Logging with ShimQueryPlanSerde with CometExprShim
val trimCast = Cast(trimStr.get, StringType)
val trimExpr = exprToProtoInternal(trimCast, inputs)
val optExpr = scalarExprToProto(trimType, srcExpr, trimExpr)
optExprWithInfo(optExpr, expr, null, srcCast, trimCast)
optExprWithInfo(optExpr, expr, srcCast, trimCast)
} else {
val optExpr = scalarExprToProto(trimType, srcExpr)
optExprWithInfo(optExpr, expr, null, srcCast)
optExprWithInfo(optExpr, expr, srcCast)
}
}

Expand Down

0 comments on commit 493304c

Please sign in to comment.