Skip to content

Commit

Permalink
Fix sc-37353: missing context argument in call to Array.load_typed
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Nov 28, 2023
1 parent 683e1bb commit 33bfac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tiledb/core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ class PyQuery {
py::object init_pyqc = cond.attr("init_query_condition");

try {
init_pyqc(uri_, attrs_);
init_pyqc(uri_, attrs_, ctx_);
} catch (tiledb::TileDBError &e) {
TPY_ERROR_LOC(e.what());
} catch (py::error_already_set &e) {
Expand Down
6 changes: 4 additions & 2 deletions tiledb/query_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ def __post_init__(self):
"(Is this an empty expression?)"
)

def init_query_condition(self, uri: str, query_attrs: List[str]):
qctree = QueryConditionTree(self.ctx, Array.load_typed(uri), query_attrs)
def init_query_condition(self, uri: str, query_attrs: List[str], ctx):
qctree = QueryConditionTree(
self.ctx, Array.load_typed(uri, ctx=ctx), query_attrs
)
self.c_obj = qctree.visit(self.tree.body)

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

0 comments on commit 33bfac9

Please sign in to comment.