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

CTAS query can not use `_c` in the prefix of the column alias

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The inconsistency sounds like a bug

      hive> create table t as select key as `_k1` from src;
      hive> desc t;
      OK
      _k1                 string
      Time taken: 0.037 seconds, Fetched: 1 row(s)
      
      hive> create table t as select key as `_c1` from src;
      hive> desc t;
      OK
      key                 string
      Time taken: 0.031 seconds, Fetched: 1 row(s)
      

      Attachments

        1. HIVE-12029.01.patch
          8 kB
          Pengcheng Xiong

        Issue Links

          Activity

            People

              pxiong Pengcheng Xiong
              pxiong Pengcheng Xiong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: