Xiao Li created SPARK-16185:
-------------------------------

             Summary: Unresolved Operator When Creating Table As Select Without 
Enabling Hive Support
                 Key: SPARK-16185
                 URL: https://issues.apache.org/jira/browse/SPARK-16185
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.0.0
            Reporter: Xiao Li


When we do not turn on the Hive Support, the following query generates a 
confusing error message:

{noformat}
      sql("CREATE TABLE t2 USING parquet SELECT a, b from t1")
{noformat}

{noformat}
unresolved operator 'CreateHiveTableAsSelectLogicalPlan CatalogTable(
        Table: `t`
        Created: Fri Jun 24 00:09:15 PDT 2016
        Last Access: Wed Dec 31 15:59:59 PST 1969
        Type: MANAGED
        Storage(InputFormat: org.apache.hadoop.mapred.TextInputFormat, 
OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat)), 
false;
org.apache.spark.sql.AnalysisException: unresolved operator 
'CreateHiveTableAsSelectLogicalPlan CatalogTable(
        Table: `t`
        Created: Fri Jun 24 00:09:15 PDT 2016
        Last Access: Wed Dec 31 15:59:59 PST 1969
        Type: MANAGED
        Storage(InputFormat: org.apache.hadoop.mapred.TextInputFormat, 
OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat)), 
false;
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to