Yikf opened a new pull request #35527:
URL: https://github.com/apache/spark/pull/35527


   ### What changes were proposed in this pull request?
   In Hive the schema and partition columns must be disjoint sets, if hive 
table which all columns are partitioned columns, so that other columns is 
empty, it will fail when Hive create table, error msg as follow:
   
   `
   throw new HiveException(
   "at least one column must be specified for the table")
   `
   That's because we did the disjoint operation in `toHiveTable`
   
   So when creating a Hive table, fail early if all the columns are partitioned 
columns, 
   
   ### Why are the changes needed?
   unify analysis error msg when create table with all the columns are 
partitioned columns
   
   ### Does this PR introduce _any_ user-facing change?
   yes, but error msg only
   
   ### How was this patch tested?
   add ut


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to