-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Reword lookup join error messages #129312
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
Reword lookup join error messages #129312
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
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.
❤️
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/190_lookup_join.yml
Outdated
Show resolved
Hide resolved
...plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/191_lookup_join_on_datastreams.yml
Outdated
Show resolved
Hide resolved
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.
Not finished reviewing, yet, but I don't think we're handling the capability correctly - this disables all bwc tests for LOOKUP JOIN.
Also, I think this should also be backported to 8.19.
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
Outdated
Show resolved
Hide resolved
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.
Oki, done now. Marked the tests where we actually need to fiddle around with the capability.
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.
The new error messages are much nicer.
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java
Show resolved
Hide resolved
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/190_lookup_join.yml
Outdated
Show resolved
Hide resolved
...plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/191_lookup_join_on_datastreams.yml
Outdated
Show resolved
Hide resolved
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/192_lookup_join_on_aliases.yml
Outdated
Show resolved
Hide resolved
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.
Much more contained now and bwc tests are still running against older versions. Thank you!
@@ -145,15 +145,15 @@ basic: | |||
- match: {values.1: [2, "yellow"]} | |||
|
|||
--- | |||
non-lookup index: | |||
fails with non-lookup index: |
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.
bikeshed: I'd prefer something like non-lookup index v2
+ a comment why this was bumped.
@@ -186,15 +186,15 @@ alias-repeated-index: | |||
- match: {values.1: [2, "yellow"]} | |||
|
|||
--- | |||
alias-pattern-multiple: | |||
fails when alias or pattern resolves to multiple: |
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.
I'd think that this and the other yaml tests will still fail bwc tests without adding a new cap. But let's see what CI has to say about this!
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.
I think it will pass since we renamed the test and skip old one (from versions where the message was different).
As far as I understand this should work the same with backport too.
The build seems to be okay, lets ran it one more time just in case.
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.
Okay, you are right, this is still failing with serverless
💔 Backport failed
You can use sqren/backport to manually backport by running |
(cherry picked from commit 85e3fb7)
This rewords lookup join messages in order to make them a bit easier to understand.
Related to #120189