-
Notifications
You must be signed in to change notification settings - Fork 141
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
[BUG] PPL query with head and sort can not properly rewrite as DSL. #494
Labels
bug
Something isn't working
Comments
Put
It will be good if you can also support
|
I can't reproduce is by swapping source=online | sort - all_client | head 1000 | fields all_client But if I move source=online | fields all_client | sort - all_client | head 1000 {
"root": {
"name": "ProjectOperator",
"description": {
"fields": "[all_client]"
},
"children": [
{
"name": "LimitOperator",
"description": {
"limit": 1000,
"offset": 0
},
"children": [
{
"name": "SortOperator",
"description": {
"sortList": {
"all_client": {
"sortOrder": "DESC",
"nullOrder": "NULL_LAST"
}
}
},
"children": [
{
"name": "ProjectOperator",
"description": {
"fields": "[all_client]"
},
"children": [
{
"name": "OpenSearchIndexScan",
"description": {
"request": "OpenSearchQueryRequest(indexName=online, sourceBuilder={\"from\":0,\"size\":200,\"timeout\":\"1m\",\"_source\":{\"includes\":[\"all_client\"],\"excludes\":[]}}, searchDone=false)"
},
"children": []
}
]
}
]
}
]
}
]
}
} I think optimizer rework announced in #1752 should fix this as well. |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
PPL query with head and sort can not properly rewrite as DSL.
To Reproduce
Expected behavior
size field in DSL should be 1000 instead of 200.
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: