Skip to content

Commit

Permalink
Merge pull request #210 from mabel-dev/FIX/#169
Browse files Browse the repository at this point in the history
FIX/#169
  • Loading branch information
joocer committed Jun 18, 2022
2 parents 0f5e7f5 + 66a976f commit 2ecf32a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Release Notes/Change Log.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- [[#199](https://github.com/mabel-dev/opteryx/issues/199)] `SHOW EXTENDED COLUMNS` blows memory allocations on large tables
([@joocer](https://github.com/joocer]))

**Fixed**

- [[#169](https://github.com/mabel-dev/opteryx/issues/169)] Selection nodes in `EXPLAIN` have nested parentheses. ([@joocer](https://github.com/joocer]))

### [0.0.2] - 2022-06-03

**Added**
Expand Down
2 changes: 2 additions & 0 deletions opteryx/engine/planner/operations/selection_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ def _inner_config(predicate):
return f"{predicate[0]}"
return "(" + " ".join(_inner_config(p) for p in predicate) + ")"
if isinstance(predicate, list):
if len(predicate) == 1:
return _inner_config(predicate[0])
return "[" + ",".join(_inner_config(p) for p in predicate) + "]"
return f"{predicate}"

Expand Down

0 comments on commit 2ecf32a

Please sign in to comment.