hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Zhou (JIRA)" <>
Subject [jira] Created: (HIVE-512) [GenericUDF] new string function ELT(N,str1,str2,str3,...)
Date Sun, 24 May 2009 13:06:45 GMT
[GenericUDF] new string function ELT(N,str1,str2,str3,...) 

                 Key: HIVE-512
             Project: Hadoop Hive
          Issue Type: New Feature
          Components: Query Processor
    Affects Versions: 0.4.0
            Reporter: Min Zhou
            Assignee: Min Zhou
             Fix For: 0.4.0


Returns str1 if N = 1, str2 if N = 2, and so on. Returns NULL if N is less than 1 or greater
than the number of arguments. ELT() is the complement of FIELD().

mysql> SELECT ELT(1, 'ej', 'Heja', 'hej', 'foo');
        -> 'ej'
mysql> SELECT ELT(4, 'ej', 'Heja', 'hej', 'foo');
        -> 'foo'

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message