File tree 2 files changed +10
-1
lines changed
dbt_semantic_interfaces/implementations
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,15 @@ def _implements_protocol(self) -> TimeSpineCustomGranularityColumn:
35
35
name : str
36
36
column_name : Optional [str ] = None
37
37
38
+ @property
39
+ def parsed_column_name (self ) -> str :
40
+ """The name of the column in the time spine table that contains this custom granularity.
41
+
42
+ For convenience in writing configs, if there is no `column_name` set, we assume the `name`
43
+ is also the column name.
44
+ """
45
+ return self .column_name or self .name
46
+
38
47
39
48
class PydanticTimeSpine (HashableBaseModel , ProtocolHint [TimeSpine ]): # noqa: D101
40
49
@override
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " dbt-semantic-interfaces"
3
- version = " 0.7.1 "
3
+ version = " 0.7.2.dev0 "
4
4
description = ' The shared semantic layer definitions that dbt-core and MetricFlow use'
5
5
readme = " README.md"
6
6
requires-python = " >=3.8"
You can’t perform that action at this time.
0 commit comments