Skip to content

Commit 6aa4b33

Browse files
authored
Merge pull request #2983 from mabel-dev/0.26.7
Optimizer rewriting lists and sets
2 parents ec05963 + dd7e2ea commit 6aa4b33

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dev/build_counter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class VersionStatus(Enum):
2525

2626
__major_version__ = 0
2727
__minor_version__ = 26
28-
__revision_version__ = 6
28+
__revision_version__ = 7
2929
__author__ = "@joocer"
3030
__status__ = VersionStatus.RELEASE
3131

opteryx/__version__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# THIS FILE IS AUTOMATICALLY UPDATED DURING THE BUILD PROCESS
22
# DO NOT EDIT THIS FILE DIRECTLY
33

4-
__build__ = 1982
4+
__build__ = 1983
55
__author__ = "@joocer"
6-
__version__ = "0.26.6"
6+
__version__ = "0.26.7"
77

88
# Store the version here so:
99
# 1) we don't load dependencies by storing it in __init__.py

opteryx/planner/optimizer/strategies/predicate_rewriter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def collect_any_eq(node, grouped):
227227
# Build new comparison node: ('a', 'b', 'c') @> z
228228
new_node = data["nodes"][0]
229229

230-
new_node.left.value = set(data["values"])
230+
new_node.left.value = list(set(data["values"]))
231231
new_node.left.element_type = new_node.left.type
232232
new_node.left.type = OrsoTypes.ARRAY
233233
new_node.left.schema_column = ConstantColumn(
@@ -298,7 +298,7 @@ def collect_eqs(node, eqs_dict):
298298
# Create a new regex pattern
299299
new_node = eq_data["nodes"][0]
300300
new_node.value = "InList"
301-
new_node.right.value = set(eq_data["values"])
301+
new_node.right.value = list(set(eq_data["values"]))
302302
new_node.right.element_type = new_node.right.type
303303
new_node.right.type = OrsoTypes.ARRAY
304304
new_node.right.schema_column = ConstantColumn(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "opteryx"
3-
version = "0.26.6"
3+
version = "0.26.7"
44
description = "Query your data, where it lives"
55
requires-python = '>=3.11'
66
readme = {file = "README.md", content-type = "text/markdown"}

0 commit comments

Comments
 (0)