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] Nested Function With Sort Doesn't Sort Inner Hits #1788
How can one reproduce the bug?
Steps to reproduce the behavior:
Upload dataset with index mapping.
Run SQL query.
Verify Results.
What is the expected behavior?
The hits portion of the response is sorted, and the inner_hits portion is not sorted. The inner_hits could be sorted, but this would be two separate sorts and all returned data would not be one contiguous sort. Perhaps an in-memory solution may be the only fix here.
What is your host/environment?
OS: IOS
Version: 13.4.1
Plugins: SQL
Do you have any screenshots?
N/A
Do you have any additional context?
Legacy engine bug.
Activity
Yury-Fridlyand commentedon Jun 27, 2023
Probably, we shouldn't push down sort if
nestedis present. This is similar to #1764. Could be done after optimizer rework described in #1752 .