You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] fetch_size doesn't seem to work as described #241
Describe the bug
Hitting the /_opendistro/_sql endpoint with fetch_size in the body does not return a cursor field in the response even when it should. Providing a negative value does generate an error, so it is being provided and parsed properly and simply doesn't seem to have any impact on the return.
To Reproduce
Steps to reproduce the behavior:
Construct a basic query that returns more than 2 results in your local instance
using the application/json header: POST {"query": $query, "fetch_size": 2}
Observe that you see receive the full, normal (>2 docs) response without a cursor
Expected behavior
I would expect to receive only 2 docs in response with a cursor entry that I could use in a subsequent POST {"cursor": $cursor} call to obtain more results from the same query.
Plugins
Please list all plugins currently enabled.
Host/Environment (please complete the following information):
I don't have admin access to the instance, so I'm inferring this:
ODFE 1.13.2
OpenSearch 1.0 because we are using OpenSearch on AWS, so I believe it is the only option per this page. The curl method for checking elasticsearch version does not seem to work for OpenSearch, but please let me know if there's another way to test.
Activity
chloe-zh commentedon Oct 22, 2021
Hi @peter-iron thanks for reporting this issue, I tried to reproduce the error in my local cluster, but it is having proper behavior:
Could you provide the version information of the OpenSearch/ODFE you are using?
peter-iron commentedon Oct 25, 2021
I don't have admin access to the instance, so I'm inferring this:
dai-chen commentedon Dec 12, 2022
Closing this since we're unable to reproduce. Feel free to reopen if more info you can provide. Thanks!
Added SIGNUM function to V2 engine (#1429)
Added SIGNUM function to V2 engine (#1429)
Added SIGNUM function to V2 engine (#1429) (#1442)