Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "lakebench"
version = "0.13.1"
version = "0.13.2"
authors = [
{ name="Miles Cole" },
]
Expand Down
7 changes: 5 additions & 2 deletions src/lakebench/engines/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def __init__(
self.operating_system = self._detect_os() if getattr(self, 'operating_system', None) is None else self.operating_system

if self.runtime == "fabric":
from IPython.core.getipython import get_ipython
import notebookutils
import sempy.fabric as fabric

self._notebookutils = get_ipython().user_ns.get("notebookutils")
self._notebookutils = notebookutils
self._fabric_rest = fabric.FabricRestClient()
workspace_id = self._notebookutils.runtime.context['currentWorkspaceId']
self.region = self._fabric_rest.get(path_or_url=f"/v1/workspaces/{workspace_id}").json()['capacityRegion'].replace(' ', '').lower()
Expand All @@ -74,6 +74,9 @@ def __init__(
self.extended_engine_metadata.update({'compute_region': self.region})
# rust object store (used by delta-rs, polars, sail) parametrization; https://docs.rs/object_store/latest/object_store/azure/enum.AzureConfigKey.html#variant.Token
os.environ["AZURE_STORAGE_TOKEN"] = self._notebookutils.credentials.getToken("storage")
elif self.runtime == "synapse":
import mssparkutils
self._notebookutils = mssparkutils

self.extended_engine_metadata.update({
'runtime': self.runtime,
Expand Down