From 2d29ecc22a9734422c2d4a49ebfcf020a2f80ecf 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 ebe6d505b9..373e79c640 100644 --- a/apis/python/src/tiledbsoma/query_condition.py +++ b/apis/python/src/tiledbsoma/query_condition.py @@ -323,10 +323,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