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