You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2017/02/28 21:57:45 UTC

[jira] [Comment Edited] (HIVE-15979) Support character_length and octet_length

    [ https://issues.apache.org/jira/browse/HIVE-15979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15888930#comment-15888930 ] 

Ashutosh Chauhan edited comment on HIVE-15979 at 2/28/17 9:57 PM:
------------------------------------------------------------------

* Standard has CHARACTER_LENGTH and CHAR_LENGTH as synonyms, can you please add that as well?
* Please use GenericUDF interface instead of UDF. UDF interface is deprecated and meant to be removed.
* Please add tests for NULL values. Should return NULL for both functions.
* Also add test for vectorized octet_length


was (Author: ashutoshc):
* Standard has CHARACTER_LENGTH and CHAR_LENGTH as synonyms, can you please add that as well?
* Please use GenericUDF interface instead of UDF. UDF interface is deprecated and meant to be removed.
* Please add tests for NULL values. Should return NULL for both functions.

> Support character_length and octet_length
> -----------------------------------------
>
>                 Key: HIVE-15979
>                 URL: https://issues.apache.org/jira/browse/HIVE-15979
>             Project: Hive
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Carter Shanklin
>            Assignee: Teddy Choi
>         Attachments: HIVE-15979.1.patch
>
>
> SQL defines standard ways to get number of characters and octets. SQL reference: section 6.28. Example:
> vagrant=# select character_length('欲速则不达');
>  character_length
> ------------------
>                 5
> (1 row)
> vagrant=# select octet_length('欲速则不达');
>  octet_length
> --------------
>            15
> (1 row)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)