Skip to content

Commit

Permalink
Merge pull request #120 from Insight-Services-APAC/feature/support-wo…
Browse files Browse the repository at this point in the history
…rkspace-name-with-space-item#111

Changes to include GUID in url instead of workspace and lakehouse name
  • Loading branch information
grantkriegerai authored Jul 31, 2024
2 parents 0ff25b3 + 093f9c1 commit 0fbe18d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dbt_wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,9 @@ def BuildDbtProject(self, PreInstall=False):

def DownloadMetadata(self, progress: ProgressConsoleWrapper, task_id):
progress.print("Downloading Metadata", level=LogLevel.INFO)
lakehouse = self.lakehouse
curr_dir = os.getcwd()
dbt_project_dir = str(Path(Path(curr_dir) / Path(self.dbt_project_dir)))
workspacename = self.fa.GetWorkspaceName(workspace_id=self.target_info['workspaceid'])
mn.DownloadMetaFiles(progress=progress, task_id=task_id, dbt_project_dir=dbt_project_dir, workspacename=workspacename, datapath=lakehouse + ".lakehouse/Files/MetaExtracts/")
mn.DownloadMetaFiles(progress=progress, task_id=task_id, dbt_project_dir=dbt_project_dir, workspacename=self.target_info['workspaceid'], datapath=self.target_info['lakehouseid'] + "/Files/MetaExtracts/")

def RunMetadataExtract(self, progress: ProgressConsoleWrapper, task_id):
nb_name = f"metadata_{self.project_name}_extract"
Expand Down

0 comments on commit 0fbe18d

Please sign in to comment.