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

INSERT INTO table using a select statement w/o a FROM clause fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      Here is the stack trace:

      FailedPredicateException(regularBody,{$s.tree.getChild(1) !=null}?)
      	at org.apache.hadoop.hive.ql.parse.HiveParser.regularBody(HiveParser.java:41047)
      	at org.apache.hadoop.hive.ql.parse.HiveParser.queryStatementExpressionBody(HiveParser.java:40222)
      	at org.apache.hadoop.hive.ql.parse.HiveParser.queryStatementExpression(HiveParser.java:40092)
      	at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1656)
      	at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1140)
      	at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)
      	at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:407)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:312)
      	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1162)
      	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1215)
      	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1091)
      	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1081)
      	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:225)
      	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:177)
      	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:388)
      	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:323)
      	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:731)
      	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:704)
      	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:633)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
      FAILED: ParseException line 1:29 Failed to recognize predicate '<EOF>'. Failed rule: 'regularBody' in statement
      

        Attachments

        1. HIVE-12200.1.patch
          20 kB
          Jimmy Xiang

          Activity

            People

            • Assignee:
              jxiang Jimmy Xiang
              Reporter:
              jxiang Jimmy Xiang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: