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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.4.0, 2.3.2
    • 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.2.patch
          3 kB
          Yongzhi Chen
        2. HIVE-16646.1.patch
          2 kB
          Yibing Shi

          Activity

            People

            • Assignee:
              Yibing Yibing Shi
              Reporter:
              Yibing Yibing Shi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: