gravitino.api.rel.table_change.UpdateColumnType¶
- final class gravitino.api.rel.table_change.UpdateColumnType(_field_name: list[str], _new_data_type: Type)¶
Bases:
ColumnChangeA TableChange to update the type of a field.
The field names are used to find the field to update.
If the field does not exist, the change must result in an IllegalArgumentException.
Methods
__init__(_field_name, _new_data_type)Retrieves the field name of the column to be modified.
get_field_name()get_new_data_type()- field_name() list[str]¶
Retrieves the field name of the column to be modified.
- Returns:
- list[str]:
A list of strings representing the field name.