Skip to content

Commit 33bfac9

Browse files
committed
Fix sc-37353: missing context argument in call to Array.load_typed
1 parent 683e1bb commit 33bfac9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tiledb/core.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ class PyQuery {
450450
py::object init_pyqc = cond.attr("init_query_condition");
451451

452452
try {
453-
init_pyqc(uri_, attrs_);
453+
init_pyqc(uri_, attrs_, ctx_);
454454
} catch (tiledb::TileDBError &e) {
455455
TPY_ERROR_LOC(e.what());
456456
} catch (py::error_already_set &e) {

tiledb/query_condition.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ def __post_init__(self):
130130
"(Is this an empty expression?)"
131131
)
132132

133-
def init_query_condition(self, uri: str, query_attrs: List[str]):
134-
qctree = QueryConditionTree(self.ctx, Array.load_typed(uri), query_attrs)
133+
def init_query_condition(self, uri: str, query_attrs: List[str], ctx):
134+
qctree = QueryConditionTree(
135+
self.ctx, Array.load_typed(uri, ctx=ctx), query_attrs
136+
)
135137
self.c_obj = qctree.visit(self.tree.body)
136138

137139
if not isinstance(self.c_obj, qc.PyQueryCondition):

0 commit comments

Comments
 (0)