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

Insert into table throws Invalid column reference when select is followed by any other operation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: All Versions
    • Fix Version/s: None
    • Component/s: Hive
    • Labels:
      None

      Description

       

      To Reproduce:

      create table foo (a int, b string);
      create table bar (a int, b string);
      
      explain insert into foo (a, b) select a, b from bar order by b;
      21/02/15 23:26:58 ERROR ql.Driver: FAILED: SemanticException [Error 10004]: Line 1:61 Invalid table alias or column reference 'b': (possible column names are: _col0, _col1)21/02/15 23:26:58 ERROR ql.Driver: FAILED: SemanticException [Error 10004]: Line 1:61 Invalid table alias or column reference 'b': (possible column names are: _col0, _col1)
      

      Any operation that follows select (order by/cluster by/distribute by) throws this exception.

       

        Attachments

          Activity

            People

            • Assignee:
              warriersruthi Sruthi Mooriyathvariam
              Reporter:
              maswin Alagappan Maruthappan
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: