Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogoncalves03 committed Nov 21, 2024
1 parent 074cb03 commit 0c1e0f2
Show file tree
Hide file tree
Showing 5 changed files with 494 additions and 143 deletions.
8 changes: 4 additions & 4 deletions singlestoredb/fusion/handlers/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ...management.export import Link
from ..handler import SQLHandler
from ..result import FusionSQLResult
from .utils import get_workspace_group
from .utils import get_deployment_group


class CreateClusterIdentity(SQLHandler):
Expand Down Expand Up @@ -80,7 +80,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
storage_config = json.loads(params['storage'].get('link_config', '{}') or '{}')
storage_creds = json.loads(params['storage'].get('link_creds', '{}') or '{}')

wsg = get_workspace_group({})
wsg = get_deployment_group({})

if wsg._manager is None:
raise TypeError('no workspace manager is associated with workspace group')
Expand Down Expand Up @@ -179,7 +179,7 @@ def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
storage_config = json.loads(params['storage'].get('link_config', '{}') or '{}')
storage_creds = json.loads(params['storage'].get('link_creds', '{}') or '{}')

wsg = get_workspace_group({})
wsg = get_deployment_group({})

if from_database is None:
raise ValueError('database name must be specified for source table')
Expand Down Expand Up @@ -216,7 +216,7 @@ class ShowExport(SQLHandler):
"""

def run(self, params: Dict[str, Any]) -> Optional[FusionSQLResult]:
wsg = get_workspace_group({})
wsg = get_deployment_group({})
out = ExportStatus(params['export_id'], wsg)

status = out._info()
Expand Down
Loading

0 comments on commit 0c1e0f2

Please sign in to comment.