-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[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) |
...test/java/org/elasticsearch/xpack/esql/expression/predicate/operator/comparison/InTests.java
Outdated
Show resolved
Hide resolved
...test/java/org/elasticsearch/xpack/esql/expression/predicate/operator/comparison/InTests.java
Outdated
Show resolved
Hide resolved
This is heroic work, btw. Thanks so much for it. |
Pinging @elastic/kibana-esql (ES|QL-ui) |
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.
Awesome!
I left a question about IN
being registered in the function registry.
I haven't double checked that the rendered docs are good, but I assume you have so that's probably fine.
def(Split.class, Split::new, "split") } }; | ||
def(Split.class, Split::new, "split") }, | ||
// Operators | ||
new FunctionDefinition[] { def(In.class, In::new, "in") } }; |
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.
Does this mean you can use it like WHERE IN(blah, "foo", "bar", "baz")
now? Do we want that?
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.
Does this mean you can use it like
WHERE IN(blah, "foo", "bar", "baz")
now? Do we want that?
I don't think we want this syntax, it is just for doc generation.
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.
Probably best to zap this from EsqlFunctionRegistry
then.
Rendered docs look great! |
Thank you for reviewing @nik9000 ! |
elastic#108749) * render docs for operators
This is a subtask of #104247 , covers operators that are unregistered functions.