[
https://issues.apache.org/jira/browse/IMPALA-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16899910#comment-16899910
]
Philip commented on IMPALA-2019:
--------------------------------
The documentation states that it returns the length in characters not bytes.
*LENGTH(STRING a)**Purpose:* Returns the length in characters of the argument
string.
*Return type:* INT
[https://www.cloudera.com/documentation/enterprise/6/6.3/topics/impala_string_functions.html#string_functions__length]
> Proper UTF-8 support in string functions
> ----------------------------------------
>
> Key: IMPALA-2019
> URL: https://issues.apache.org/jira/browse/IMPALA-2019
> Project: IMPALA
> Issue Type: New Feature
> Components: Backend
> Affects Versions: Impala 2.1, Impala 2.2
> Reporter: Andrés Cordero
> Priority: Minor
> Labels: sql-language
>
> As documented here:
> http://www.cloudera.com/content/cloudera/en/documentation/cloudera-impala/latest/topics/impala_string.html
> Impala does not properly handle non-ASCII UTF-8 characters, and will return
> results in string functions such as length that are inconsistent with Hive.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]