From 49a63121634970dbb802a4b1584fb82d0a27c04a Mon Sep 17 00:00:00 2001 From: John Kerl Date: Wed, 12 Oct 2022 18:44:59 -0400 Subject: [PATCH] Port https://github.com/TileDB-Inc/TileDB-Py/pull/1333 --- apis/python/src/tiledbsoma/query_condition.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apis/python/src/tiledbsoma/query_condition.py b/apis/python/src/tiledbsoma/query_condition.py index a0a9ff55a2..e7d9287821 100644 --- a/apis/python/src/tiledbsoma/query_condition.py +++ b/apis/python/src/tiledbsoma/query_condition.py @@ -321,10 +321,8 @@ def get_att_from_node(self, node: QueryConditionNodeElem) -> Any: raise tiledb.TileDBError(f"Attribute `{att}` not found in schema.") if att not in self.query_attrs: - raise tiledb.TileDBError( - f"Attribute `{att}` given to filter in query's `attr_cond` " - "arg but not found in `attr` arg." - ) + # https://github.com/TileDB-Inc/TileDB-Py/pull/1333/files + self.query_attrs.append(att) return att