Skip to content

Commit 8f70ac0

Browse files
committed
Allow query conditions on dense array dimensions
1 parent 5f24a9d commit 8f70ac0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tiledb/query_condition.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class QueryCondition:
2323
"""
2424
Class representing a TileDB query condition object for attribute and dimension
25-
(sparse arrays only) filtering pushdown.
25+
filtering pushdown.
2626
2727
A query condition is set with a string representing an expression
2828
as defined by the grammar below. A more straight forward example of usage is
@@ -355,12 +355,6 @@ def get_variable_from_node(self, node: QueryConditionNodeElem) -> Any:
355355
f"Incorrect type for variable name: {ast.dump(variable_node)}"
356356
)
357357

358-
if self.array.schema.domain.has_dim(variable) and not self.array.schema.sparse:
359-
raise TileDBError(
360-
"Cannot apply query condition to dimensions on dense arrays. "
361-
f"{variable} is a dimension."
362-
)
363-
364358
if isinstance(node, ast.Call):
365359
if node.func.id == "attr" and not self.array.schema.has_attr(variable):
366360
raise TileDBError(f"{node.func.id} is not an attribute.")

0 commit comments

Comments
 (0)