-
Notifications
You must be signed in to change notification settings - Fork 25.7k
ESQL: Provide appropriate messages when can't execute INLINESTATS #134201
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
ESQL: Provide appropriate messages when can't execute INLINESTATS #134201
Conversation
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
astefan
left a comment
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.
LGTM
| * failures.add( | ||
| * fail( | ||
| * inlineJoin, | ||
| * "unbounded sort [{}] not supported before inlinejoin [{}], move the sort after the inlinejoin", |
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.
This being a user facing error message where there is no notion of "inlinejoin" we might want to adapt it to the command name itself (inlinestats / inline stats).
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.
Ah, right, thanks.
| orderBy -> failures.add( | ||
| fail( | ||
| inlineJoin, | ||
| "inlinestats [{}] cannot yet have an unbounded sort [{}] before it : either move the sort after it," |
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.
Nit: uppercase inlinestats (like the message from Categorize).
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've initially kept it in sync with the existing message in OrderBy about general unbounded sorts, which didn't use capitals. But I've updated that now too, to use capitals for commands.
…astic#134201) This adds the guards to reject queries that INLINESTATS cannot currently execute: - SORT with no LIMIT before INLINESTATS - CATEGORIZE with INLINESTATS. Closes elastic#124725
…astic#134201) This adds the guards to reject queries that INLINESTATS cannot currently execute: - SORT with no LIMIT before INLINESTATS - CATEGORIZE with INLINESTATS. Closes elastic#124725
This adds the guards to reject queries that INLINESTATS cannot currently execute:
Closes #124725