Skip to content

GNNTable.unset_time_column()

Unset an existing column as the time column in the GNN table.

NameTypeDescriptionOptional
col_namestrThe name of an existing column to unset as the time column.No

Raises ValueError if the column does not exist in the GNN table or if the column is not currently set as the time column.

from relationalai_gnns import GNNTable, CandidateKey
table_with_time = GNNTable(
connector=connector,
name="TableWithTime",
source="DATABASE.SCHEMA.TABLE_WITH_TIME",
type="node",
candidate_keys="IdColumn",
time_column="date"
)
table_with_time.unset_time_column(col_name="date")