cloud-fan commented on a change in pull request #30479:
URL: https://github.com/apache/spark/pull/30479#discussion_r538420019
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala
##########
@@ -2082,6 +2082,64 @@ case class UnBase64(child: Expression)
}
}
+object Decode {
+ def createExpr(params: Seq[Expression]): Expression = {
+ params.length match {
+ case 0 => StringDecode(Literal.create(null, StringType),
Literal.create(null, StringType))
+ case 1 => StringDecode(params.head, Literal.create(null, StringType))
Review comment:
do we really allow 0 or 1 parameter before?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]