Skip to content

Commit c1b6ef1

Browse files
committed
Align Marimo imports and table metadata resolution with runtime contract.
Switch modules to root hotdata_runtime imports and pass selected connection_id when resolving table columns to avoid ambiguous connection-name lookups.
1 parent b0482c3 commit c1b6ef1

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

hotdata_marimo/display.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
import marimo as mo
66

7-
from hotdata_runtime.client import HotdataClient
8-
from hotdata_runtime.health import workspace_health_lines
9-
from hotdata_runtime.result import QueryResult
7+
from hotdata_runtime import HotdataClient, QueryResult, workspace_health_lines
108

119

1210
def _option_map_with_unique_labels(

hotdata_marimo/sql_editor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import marimo as mo
44

5-
from hotdata_runtime.client import HotdataClient
6-
from hotdata_runtime.result import QueryResult
5+
from hotdata_runtime import HotdataClient, QueryResult
76

87

98
class SqlEditor:

hotdata_marimo/table_browser.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import marimo as mo
66

7-
from hotdata_runtime.client import HotdataClient
7+
from hotdata_runtime import HotdataClient
88

99

1010
def _connection_options(conns: list[Any]) -> dict[str, str]:
@@ -194,7 +194,10 @@ def ui(self):
194194
stack.append(self.table_pick)
195195
return mo.vstack(stack, gap=1)
196196

197-
cols = self._client.columns_for_qualified(sel)
197+
cols = self._client.columns_for_qualified(
198+
sel,
199+
connection_id=self.selected_connection_id,
200+
)
198201
if not cols:
199202
body = mo.md("_No column metadata returned (check catalog sync)._")
200203
else:

hotdata_marimo/workspace_selector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

33
import marimo as mo
4-
from hotdata_runtime.client import HotdataClient
5-
from hotdata_runtime.env import (
4+
from hotdata_runtime import (
5+
HotdataClient,
66
default_api_key,
77
default_host,
88
default_session_id,

0 commit comments

Comments
 (0)