Github user marmbrus commented on the pull request:
https://github.com/apache/spark/pull/1586#issuecomment-50858199
> let us keep the "length" which can be used for non-strings e.g.
length(12345678) = 8
Non-string length as described above should probably be handled by
type-coercion with `CAST`s and not by making the expression more general.
Otherwise we will have to duplicate all of the logic that is used to turn
arbitrary types of numbers into strings.
---
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.
---