-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
[CI] StatementParserTests testInvalidJoinPatterns failing #125536
Comments
This has been muted on branch main Mute Reasons:
Build Scans: |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Caused by #120660 @jbaiera I identified following issues with the test, could you please take a look on them: Lines 3144 to 3153 in 81ef7dd
Lines 3156 to 3165 in 81ef7dd
Lines 3168 to 3173 in 81ef7dd
|
Will get a fix put together for these issues soon. Thanks for the direct guidance on how to get these back toward a good state. To answer a couple of questions raised:
Hmm, I would expect the highlighted case to have cluster ids generated and added to the patterns, unless you're simply giving a hypothetical example of the resulting values. Cluster ids and index selectors are exclusive to one another in the random index pattern creation logic. We needed to keep them exclusive of each other because supported features will randomly toggle on if not explicitly enabled or disabled. This could cause other tests to fail in the case that both features toggled on for a random pattern. In this highlighted test case we have to circumvent the random pattern logic to force an invalid pattern that does combine these features together to make sure they throw the exceptions expected.
This is an error message that is returned from the Antlr generated code because the selectors and cluster ids are not compatible with each other in the esql syntax. Unfortunately, further validation is required for quoted fields because they circumvent the syntax rules as an escaped pattern:
We force quoting on this test because the error message is different if you supply |
Opened #125731 for this |
Build Scans:
Reproduction Line:
Applicable branches:
main
Reproduces locally?:
N/A
Failure History:
See dashboard
Failure Message:
Issue Reasons:
Note:
This issue was created using new test triage automation. Please report issues or feedback to es-delivery.
The text was updated successfully, but these errors were encountered: