emanuelebardelli opened a new pull request #24780: [SPARK-26388][SQL]_implement_hive_ddl_alter_table_replace_columns URL: https://github.com/apache/spark/pull/24780 ## What changes were proposed in this pull request? Add support for `ALTER TABLE REPLACE COLUMNS` This patch is inspired and mostly based on the work done by @xwu0226 in this PR: https://github.com/apache/spark/pull/16626 #### PR highlights: - dropping columns is now allowed (b04f94a) - `AlterTableAddColumnsCommand` refactored to be more generic and support the implementation of `AlterTableReplaceColumnsCommand` (f8cbb96, 00f6376, da16d3e) - refactored how supported datasource formats for add and replace columns commands are validated (da16d3e) #### Known issues: - `AlterTableReplaceColumnsCommand` does not support CSV datasource format (13e3823) ## How was this patch tested? - added tests cases - manually tested - run `testOnly org.apache.spark.sql.*` tests suite. all tests passing locally
---------------------------------------------------------------- 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]
