-
Notifications
You must be signed in to change notification settings - Fork 186
GROUP BY size restriction from second aggregation and up #1081
Comments
Hi @alexferl , thanks for reporting this issue. It looks like your query fell back to the old engine so that the explanation differed from the behavior we are having now. Here is what it looks like in the new engine:
Your query syntax should be good to pass the new engine, not sure whether your new engine switch is off, could you take a look at your plugin settings to double check it? If so, please turn on the new engine following this manual: https://github.com/opendistro-for-elasticsearch/sql/blob/develop/docs/user/admin/settings.rst#opendistro-sql-engine-new-enabled Thanks! |
Hi @chloe-zh, I've tried this and it's still using the old engine. I get the following response when I PUT the setting so it seems like should work:
but I still get the same old-style query with nested aggregations or missing data when I actually run the query because of the size=10 limit. Thank you! |
Sorry I missed your info saying that the new engine is enabled already. Is the query the exact one that you are using? Could you provide some sample data so that we can try to reproduce and locate the issue from our side? |
@alexferl @chloe-zh It seems fallback will happen if cursor is enabled: https://github.com/opendistro-for-elasticsearch/sql/blob/develop/legacy/src/main/java/com/amazon/opendistroforelasticsearch/sql/legacy/plugin/RestSqlAction.java#L151 I think this check was added because once cursor enabled, a request is treated as cursor request even if no |
It seems like issue #276 is back or I am doing something wrong.
On a 1.13.1 cluster explaining the following query:
returns the following:
I have the following settings on the cluster:
According to #730, the bucket size should be 1000 instead of 10. My query size (10000) is also not honored but it seems the issue is already reported #1039.
Any ideas?
Thank you!
The text was updated successfully, but these errors were encountered: