Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/10541#discussion_r49045865
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala
---
@@ -340,6 +369,12 @@ case class FindInSet(left: Expression, right:
Expression) extends BinaryExpressi
}
override def dataType: DataType = IntegerType
+
+ override def prettyName: String = "find_in_set"
+
+ override def sql: Option[String] = for {
--- End diff --
Then maybe simply returns a `String` and throw an exception if the
expression is either not supported yet or inherently doesn't have a SQL
representation (e.g. ScalaUDF)?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]