diff --git a/dbt_semantic_interfaces/implementations/time_spine.py b/dbt_semantic_interfaces/implementations/time_spine.py index b010d3d2..4173682a 100644 --- a/dbt_semantic_interfaces/implementations/time_spine.py +++ b/dbt_semantic_interfaces/implementations/time_spine.py @@ -35,6 +35,11 @@ def _implements_protocol(self) -> TimeSpineCustomGranularityColumn: name: str column_name: Optional[str] = None + @property + def parsed_column_name(self) -> str: + """Get column name. Assumed `name` attribute unless `column_name` is set.""" + return self.column_name or self.name + class PydanticTimeSpine(HashableBaseModel, ProtocolHint[TimeSpine]): # noqa: D101 @override