-
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
[Rest Api Compatibility] Framework support for EQL and SQL endpoints #92710
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Pinging @elastic/es-ql (Team:QL) |
Thanks for raising this, @pgomulka. We have a linked issue in the .NET client which may be caused by potential differences in the response. I'll look into that more deeply on our end to check what seems to have changed. It would be helpful to ensure clients running in compatibility mode can use EQL and SQL. Right now, it's the only way for .NET consumers to work with a v8 server in .NET, so consumption may be broken without it. |
+1 on having compatibility mode preserve the structure of responses in 7.x for EQL and SQL, going forward all API endpoints should respect compatibility mode negotiation. |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Description
Rest api compatibility was not covering the support for eql and sql plugins (not supporting any plugins) at the time when we were implementing it.
SQL and EQL have a custom logic on creating
XContentBuilder
.Those two places (and possibly more) should be revisited to make sure the right parameters are passed in when creating
XContentBuilder
elasticsearch/x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plugin/RestSqlClearCursorAction.java
Line 56 in 237fd28
elasticsearch/x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/plugin/RestEqlSearchAction.java
Line 71 in 237fd28
I recon at some point we can consider extending the rest api compatibility coverage to plugins and fix this for EQL and SQL. The rest api compatibility framework should support additional media types used in SQL (just headers formatting, not request/respone parsing)
steps to reproduce currently not working behaviour
The text was updated successfully, but these errors were encountered: