Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16646

Alias in transform ... as clause shouldn't be case sensitive

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.2, 2.4.0, 3.0.0
    • Component/s: hpl/sql
    • Labels:
      None

      Description

      Create a table like below:

      CREATE TABLE hive_bug(col1 string);
      

      Run below query in Hive:

      from hive_bug select transform(col1) using '/bin/cat' as (AAAA string);
      

      The result would be:

      0: jdbc:hive2://localhost:10000> from hive_bug select transform(col1) using '/bin/cat' as (AAAA string);
      ......
      INFO  : OK
      +-------+--+
      | AAAA  |
      +-------+--+
      +-------+--+
      

      The output column name is AAAA instead of the lowercase aaaa.

        Attachments

        1. HIVE-16646.1.patch
          2 kB
          Yibing Shi
        2. HIVE-16646.2.patch
          3 kB
          Yongzhi Chen

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment