You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by ueshin <gi...@git.apache.org> on 2014/08/01 08:48:54 UTC

[GitHub] spark pull request: SPARK-2686 Add Length and Strlen support to Sp...

Github user ueshin commented on the pull request:

    https://github.com/apache/spark/pull/1586#issuecomment-50854265
  
    Hi, @javadba.
    My proposal is as follows:
    
    a) `CharLength` expression = codePoints, and use `char_length` function in parser and `length` as synonym of `char_length` for hive compatibility
    b) `OctetLength` expression = bytes to show amount of byte storage for a string, and use `octet_length` function in parser
    
    Standard SQL defines `char_length` and `octet_length` functions.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---