run checks the column names (against any duplications) and types, and re-constructs the original schema of columns from their column metadata (if there is any).
verifyAlterTableAddColumn throws an AnalysisException if the table is a VIEW:
ALTER ADD COLUMNS does not support views.
You must drop and re-create the views for adding the new columns. Views: [table]
For a Spark table (that is non-Hive), verifyAlterTableAddColumnfinds the implementation of the table provider and makes sure that the table provider is one of the following supported file formats:
Otherwise, verifyAlterTableAddColumn throws an AnalysisException:
ALTER ADD COLUMNS does not support datasource table with type [tableType].
You must drop and re-create the table for adding the new columns. Tables: [table]