From 2704ac92234498d1bcba69de5f3a71e2175d3553 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Wed, 12 Oct 2022 11:45:12 -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 9440bbdb15..e47a76d4ca 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