lidinghao commented on a change in pull request #25390: [SPARK-28662] [SQL] 
Create Hive Partitioned Table without specifying data type for partition 
columns will success in Spark 3.0
URL: https://github.com/apache/spark/pull/25390#discussion_r312481333
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
 ##########
 @@ -985,7 +985,15 @@ class SparkSqlAstBuilder(conf: SQLConf) extends 
AstBuilder(conf) {
         } else {
           CreateTable(tableDescWithPartitionColNames, mode, Some(q))
         }
-      case None => CreateTable(tableDesc, mode, None)
+      case None =>
 
 Review comment:
   In Hive 2.3.2, will throw exception like following:
   ```
   > CREATE TABLE tbl(a int) PARTITIONED BY (b) STORED AS parquet;
   Error: Error while compiling statement: FAILED: ParseException line 1:41 
cannot recognize input near ')' 'STORED' 'AS' in column type 
(state=42000,code=40000)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to