Skip to content

Conversation

@costin
Copy link
Member

@costin costin commented Apr 5, 2021

Backports the following commits to 7.x:

Currently the canonical form takes into account only the node itself and
not its children.
For commutative cases this creates subtle issues in that the children
are swapped based on their canonical form but not canonicalize and thus
semantic comparison fail.

This PR fixes that by taking into account the canonical children and,
for commutative expressions, applies semantic ordering.
In the process, improve handling of nested negated expressions.
@costin costin self-assigned this Apr 5, 2021
@costin costin added backport Team:QL (Deprecated) Meta label for query languages team labels Apr 5, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

@costin costin merged commit 3a625c9 into elastic:7.x Apr 5, 2021
@costin costin deleted the backport/7.x/pr-71266 branch April 5, 2021 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants