Skip to content

Commit

Permalink
Merge pull request #377 from jaceksan/gartner
Browse files Browse the repository at this point in the history
TRIVIAL: gooddata-dbt - allow to override LDM ID part2

Reviewed-by: Jan Kadlec
             https://github.com/hkad98
  • Loading branch information
gdgate authored Oct 9, 2023
2 parents 9456201 + f6a8d34 commit d13e956
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gooddata-dbt/gooddata_dbt/dbt/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def make_grain(self, table: DbtModelTable) -> List[Dict]:
grain = []
for column in table.columns.values():
if self.is_primary_key(column):
grain.append({"id": column.gooddata_ldm_id, "type": "attribute"})
grain.append({"id": column.ldm_id, "type": "attribute"})
return grain

# TODO - constraints are stored in special nodes
Expand Down Expand Up @@ -342,9 +342,9 @@ def make_references(self, table: DbtModelTable, role_playing_tables: Dict) -> Li
if self.upper_case:
referenced_object_name = referenced_object_name.upper()
if referenced_object_name in role_playing_tables:
referenced_object_id = f"{referenced_object_id}_{column.gooddata_ldm_id}"
referenced_object_id = f"{referenced_object_id}_{column.ldm_id}"
elif column.is_date():
referenced_object_id = column.gooddata_ldm_id
referenced_object_id = column.ldm_id
if referenced_object_id is not None:
references.append(
{
Expand Down

0 comments on commit d13e956

Please sign in to comment.