-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple JexlNode rebuilding visitors are not preserving proper parentage #880
Comments
This was referenced Oct 20, 2020
jwomeara
pushed a commit
that referenced
this issue
Oct 21, 2020
Add asserts to tests for RegexFunctionVisitor to verify that it returns a query tree with valid lineage. Part of #880.
jwomeara
added a commit
that referenced
this issue
Oct 30, 2020
Verify that IsNotNullIntentVisitor returns a query tree with a valid lineage, and add unit tests to assert this. Part of #880. Co-authored-by: Whitney O'Meara <jwomeara@users.noreply.github.com>
jwomeara
added a commit
that referenced
this issue
Oct 30, 2020
Add asserts to tests for GeoWavePruningVisitor to verify that it returns a query tree with valid lineage. Part of #880. Co-authored-by: Whitney O'Meara <jwomeara@users.noreply.github.com>
jwomeara
added a commit
that referenced
this issue
Oct 30, 2020
Add unit tests to verify that FixNegativeNumbersVisitor returns a query tree with valid lineage. Part of #880. Co-authored-by: Whitney O'Meara <jwomeara@users.noreply.github.com>
jwomeara
added a commit
that referenced
this issue
Oct 30, 2020
Add an assert to tests for DateIndexCleanupVisitor to verify that it returns a query tree with a valid lineage. Part of #880. Co-authored-by: Whitney O'Meara <jwomeara@users.noreply.github.com>
jwomeara
added a commit
that referenced
this issue
Oct 30, 2020
BooleanOptimizationRebuildingVisitor does not return a query tree with a valid lineage. Ensure that lineage is properly established and an assert for this in related tests. Related to #880. Co-authored-by: Whitney O'Meara <jwomeara@users.noreply.github.com>
ivakegg
pushed a commit
that referenced
this issue
Oct 30, 2020
FacetCheck does not return a query tree with a valid lineage. Ensure that lineage is properly established and add unit tests to assert this. Part of #880.
jwomeara
added a commit
that referenced
this issue
Nov 3, 2020
* Verify lineage for TreeFlatteningRebuildingVisitor Add an assert to tests for TreeFlatteningRebuildingVisitor to verify that it returns a query with valid lineage. Part of #880. * Restore return value for copyTree method Co-authored-by: Whitney O'Meara <jwomeara@users.noreply.github.com>
This was referenced Nov 5, 2020
ivakegg
pushed a commit
that referenced
this issue
Dec 11, 2020
ivakegg
pushed a commit
that referenced
this issue
Dec 11, 2020
ivakegg
pushed a commit
that referenced
this issue
Dec 11, 2020
* Add an assert to tests for ExpandMultinormalizedTerms to verify that it returns a query tree with valid lineage. * Dedupe and optimize JexlASTHelper.isDelayedPredicate * Revert isDelayedPredicate changes * Avoid multiple recursions * Move isDelayedPredicate method to QueryPropertyMarkerVisitor * Remove obsolete constant
ivakegg
pushed a commit
that referenced
this issue
Dec 18, 2020
…ify input tree (#998) * Verify that FunctionIndexQueryExpansionVisitor does not modify the original input JEXL tree, or invalidate its lineage. In addition, verify that the visitor returns a JEXL tree with a valid lineage.
ivakegg
pushed a commit
that referenced
this issue
Mar 5, 2021
This was referenced Aug 24, 2021
apmoriarty
pushed a commit
that referenced
this issue
Aug 27, 2021
Write tests for TreeWrappingRebuildingVisitor to verify that it returns a query with valid lineage. Part of #880.
ivakegg
pushed a commit
that referenced
this issue
Sep 16, 2021
Part of #880 * Write tests for QueryOptionsFromQueryVisitor to verify that it returns a query with a valid lineage. Additionally, update the documentation, and ensure that any AND/OR nodes with subsequently deleted children are cleaned up.
ivakegg
pushed a commit
that referenced
this issue
Sep 17, 2021
FixUnindexedNumericTerms does not return a query tree with a valid lineage. Ensure that lineage is properly established, and add unit tests to verify this. Part of #880.
ivakegg
pushed a commit
that referenced
this issue
Sep 17, 2021
FieldToFieldComparisonVisitor does not return a query with a valid lineage. Ensure that lineage is properly established, and add unit tests to verify this. Part of #880.
ivakegg
pushed a commit
that referenced
this issue
Sep 17, 2021
Modify tests for NodeTransformVisitor to viery that it returns a query with a valid lineage. Part of #880.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a new validateLineage method being added to JexlASTHelper which attempts to validate that for a given Jexl tree:
Using this method we can determine where in the planning process (DefaultQueryPlanner) that we are creating invalid trees. Those steps/rebuilding visitors need to be fixed.
One known area is when when getQueryPropertySource is called on the QueryPropertyMarker.
Once everything is fixed, we should be able to call validateLineage before and after every step in the DefaultQueryPlanner with no errors.
The text was updated successfully, but these errors were encountered: