Skip to content

Commit

Permalink
feat: modify_mapped_data_source add support for SQL datasets
Browse files Browse the repository at this point in the history
JIRA: PSDK-206
risk: low
  • Loading branch information
hkad98 committed Oct 8, 2024
1 parent ebe3139 commit 2f33e34
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ def modify_mapped_data_source(self, data_source_mapping: Optional[dict]) -> Cata
data_source_id = dataset.data_source_table_id.data_source_id
if data_source_id in data_source_mapping:
dataset.data_source_table_id.data_source_id = data_source_mapping[data_source_id]
if dataset.sql is not None:
data_source_id = dataset.sql.data_source_id
if data_source_id in data_source_mapping:
dataset.sql.data_source_id = data_source_mapping[data_source_id]
return self

@staticmethod
Expand Down

0 comments on commit 2f33e34

Please sign in to comment.