gravitino.api.rel.table_change.DeleteColumn¶
- final class gravitino.api.rel.table_change.DeleteColumn(_field_name: list[str], _if_exists: bool)¶
Bases:
ColumnChangeA TableChange to delete a field.
If the field does not exist, the change must result in an IllegalArgumentException.
- __init__(_field_name: list[str], _if_exists: bool) None¶
Methods
__init__(_field_name, _if_exists)Retrieves the field name of the column to be modified.
Retrieves the field name of the column to be deleted.
Checks if the field should be deleted only if it exists.
- 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.
- get_field_name() list[str]¶
Retrieves the field name of the column to be deleted.
- Returns:
list[str]: A list of strings representing the field name.
- get_if_exists() bool¶
Checks if the field should be deleted only if it exists.
- Returns:
bool: True if the field should be deleted only if it exists; False otherwise.