File tree Expand file tree Collapse file tree
packages/gooddata-dbt/src/gooddata_dbt/dbt Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88import attrs
99from gooddata_sdk import CatalogDeclarativeColumn , CatalogDeclarativeTable , CatalogDeclarativeTables
10+ from gooddata_sdk .catalog .workspace .declarative_model .workspace .logical_model .dataset .dataset import (
11+ CatalogGeoAreaConfig ,
12+ )
1013from gooddata_sdk .utils import safeget
1114
1215from gooddata_dbt .dbt .base import (
@@ -40,7 +43,7 @@ class DbtModelMetaGoodDataColumnProps(Base):
4043 sort_column : str | None = None
4144 sort_direction : GoodDataSortDirection | None = None
4245 default_view : bool | None = None
43- geo_area_config : dict [ str , dict [ str , str ]] | None = None
46+ geo_area_config : CatalogGeoAreaConfig | None = None
4447
4548 @property
4649 def gooddata_ref_table_ldm_id (self ) -> str | None :
@@ -403,7 +406,7 @@ def make_labels(table: DbtModelTable, attribute_column: DbtModelColumn) -> tuple
403406 "tags" : [table .gooddata_ldm_title ] + column .tags ,
404407 }
405408 if column .meta .gooddata .geo_area_config is not None :
406- label_dict ["geo_area_config" ] = column .meta .gooddata .geo_area_config
409+ label_dict ["geo_area_config" ] = column .meta .gooddata .geo_area_config . to_dict ()
407410 labels .append (label_dict )
408411 if column .meta .gooddata .default_view :
409412 default_view = {
You can’t perform that action at this time.
0 commit comments