gengliangwang opened a new pull request #24776: [SPARK-27926][SQL] Allow 
altering table add columns with CSVFileFormat/JsonFileFormat provider
URL: https://github.com/apache/spark/pull/24776
 
 
   ## What changes were proposed in this pull request?
   
   In the previous work of csv/json migration, CSVFileFormat/JsonFileFormat is 
removed in the table provider whitelist of 
`AlterTableAddColumnsCommand.verifyAlterTableAddColumn`:
   https://github.com/apache/spark/pull/24005
   https://github.com/apache/spark/pull/24058
   
   This is regression. If a table is created with Provider 
`org.apache.spark.sql.execution.datasources.csv.CSVFileFormat` or 
`org.apache.spark.sql.execution.datasources.json.JsonFileFormat`, Spark should 
allow the "alter table add column" operation.
   
   ## How was this patch tested?
   
   Unit test
   

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