-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add validation step to quoted join query construction #125731
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
Add validation step to quoted join query construction #125731
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Pinging @elastic/es-data-management (Team:Data Management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice PR, very helpful comments. Thanks @jbaiera !
Do we want to apply the auto-backport
label before merging?
The original change hasn't been fully backported yet (was also experiencing some related CI woes) so I plan to bring these changes in with it to keep the 8.x branch healthy. |
* Add validation step to quoted join query construction * Fix double validation
Backporting to 8.x with #125557 |
* Support index pattern selector syntax in ES|QL (#120660) This PR updates the ES|QL grammar to include the selector portion of an index pattern. Patterns are recombined before being sent to field caps. Field caps already supports this functionality, so this is primarily wiring it up where needed. * Add validation step to quoted join query construction (#125731) * Add validation step to quoted join query construction * Fix double validation * Add lexer entry for METRICS commands * Simplifying test case * regen
* Add validation step to quoted join query construction * Fix double validation
Unmutes statement parser tests and fixes some errors in the test cases to get CI running smoothly again. Added more comments to the test cases to explain why we forcefully quote and unquote the random patterns, and also for why we manually modify the random patterns returned in some parts of the test.
Also adds further validation to join query construction logic to bar selectors from being provided in quoted index patterns. Splits test validation for the right side of the join statement into two cases, a quoted one and an unquoted one.
fixes #125536