Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19124#discussion_r137078673
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/createDataSourceTables.scala
 ---
    @@ -85,6 +87,13 @@ case class CreateDataSourceTableCommand(table: 
CatalogTable, ignoreIfExists: Boo
           }
         }
     
    +    table.provider.get.toLowerCase match {
    --- End diff --
    
    Oh, I see. It fails.
    ```scala
    scala> sql("set spark.sql.hive.convertMetastoreParquet=false")
    res5: org.apache.spark.sql.DataFrame = [key: string, value: string]
    
    scala> sql("INSERT INTO t VALUES(1)")
    17/09/05 11:34:03 ERROR Utils: Aborting task
    org.apache.hadoop.hive.ql.metadata.HiveException: 
java.lang.IllegalArgumentException: field ended by ';': expected ';' but got 
'b' at line 1:   optional int32 a b
        at 
org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:249)
        at 
org.apache.spark.sql.hive.execution.HiveOutputWriter.<init>(HiveFileFormat.scala:123)
    ```


---

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

Reply via email to