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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.2, 2.4.0, 3.0.0
    • hpl/sql
    • 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

          People

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

            Dates

              Created:
              Updated:
              Resolved: