Github user chenghao-intel commented on the pull request:
https://github.com/apache/spark/pull/1586#issuecomment-50424554
@javadba ,sorry, I have something confusing in expression, I am not sure if
we did correctly. Probably @marmbrus can clarifies them.
And, I know we should keep both `strlen` and `length` in SQL, but I mean we
probably just keep a single class in expression, let's say:
```
case class Strlen(child: Expression, encoding :
Expression=Literal(StrlenConstants.DefaultEncoding))
extends UnaryExpression
```
In the parser, we can provide different encoding or use the default one.
---
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.
---