-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[ES|QL] Generate docs for unregistered esql functions from annotations #108749
base: main
Are you sure you want to change the base?
[ES|QL] Generate docs for unregistered esql functions from annotations #108749
Conversation
Documentation preview: |
Pinging @elastic/es-docs (Team:Docs) |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
@Override | ||
public void testFactoryToString() { | ||
assumeFalse("test case is invalid", false); | ||
} |
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 wonder if we can pull out a superclass of AbstractFunctionTestCase
without these methods.
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.
Discussed with Nik about this, skipping testFactoryToString is for InTest only, it is because the way In is implemented in ES|QL is different from the other functions, it doesn't implement EvaluatorMapper. Follow up PRs will be opened to rewrite In using EvaluatorMapper and clean up EvaMapper. This PR is mainly for doc generation through annotations, leave this test skipped for now, and when the In is rewritten with EvaluatorMapper, InTests will be modified.
|
||
@Override | ||
public void testSimpleWithNulls() { | ||
assumeFalse("test case is invalid", false); |
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.
How many legitimate callers of this are there left? I imagine you've nearly replaced all users of this with anyNullIsNull
and the like.
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.
Same as above, after rewriting In with EvaluatorMapper, the InTests will be modified accordingly, this is for doc generation only.
This is heroic work, btw. Thanks so much for it. |
This is a subtask of #104247 , covers operators that are unregistered functions.