Class TableChange.AddColumn

Object
org.apache.spark.sql.connector.catalog.TableChange.AddColumn
All Implemented Interfaces:
TableChange, TableChange.ColumnChange
Enclosing interface:
TableChange

public static final class TableChange.AddColumn extends Object implements TableChange.ColumnChange
A TableChange to add a field. The implementation may need to back-fill all the existing data to add this new column, or remember the column default value specified here and let the reader fill the column value when reading existing data that do not have this new column.

If the field already exists, the change must result in an IllegalArgumentException. If the new field is nested and its parent does not exist or is not a struct, the change must result in an IllegalArgumentException.