Class TableChange.AddColumn
Object
org.apache.spark.sql.connector.catalog.TableChange.AddColumn
- All Implemented Interfaces:
TableChange
,TableChange.ColumnChange
- Enclosing interface:
- TableChange
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
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.sql.connector.catalog.TableChange
TableChange.AddColumn, TableChange.After, TableChange.ColumnChange, TableChange.ColumnPosition, TableChange.DeleteColumn, TableChange.First, TableChange.RemoveProperty, TableChange.RenameColumn, TableChange.SetProperty, TableChange.UpdateColumnComment, TableChange.UpdateColumnDefaultValue, TableChange.UpdateColumnNullability, TableChange.UpdateColumnPosition, TableChange.UpdateColumnType
-
Method Summary
-
Method Details
-
fieldNames
- Specified by:
fieldNames
in interfaceTableChange.ColumnChange
-
dataType
-
isNullable
public boolean isNullable() -
comment
-
position
-
defaultValue
-
equals
-
hashCode
public int hashCode()
-