Github user OopsOutOfMemory commented on a diff in the pull request:
https://github.com/apache/spark/pull/2998#discussion_r19653967
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringOperations.scala
---
@@ -92,6 +92,29 @@ trait CaseConversionExpression {
}
}
+
+trait StringCalculationExpression {
--- End diff --
@chenghao-intel yep, what I mean is to add a trait to support return type
of Integer. Because function like LENGTH(n) which compute the size of a string
return Integer, INSTR(chr1,chr2,[n,[m]]) which compute a position also return
Integer. But I'm not sure whether this will cause some side effect or not.
---
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]