gravitino.api.rel.table_change.UpdateColumnNullability¶
- final class gravitino.api.rel.table_change.UpdateColumnNullability(_field_name: list[str], _nullable: bool)¶
Bases:
ColumnChangeA TableChange to update the nullability 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.
- __init__(_field_name: list[str], _nullable: bool) None¶
Methods
__init__(_field_name, _nullable)Retrieves the field name of the column to be modified.
Retrieves the field name of the column whose nullability is being updated.
Checks if the column is nullable.
- 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 whose nullability is being updated.
- Returns:
list[str]: A list of strings representing the field name.
- get_nullable() bool¶
Checks if the column is nullable.
- Returns:
bool: True if the column is nullable; False otherwise.