Commit 523d8d8
authored
Query: Fixes non streaming order by queries to not be tagged as passthrough queries (#5273)
## Description
Since the addition of non-streaming order by, it is no longer safe to
treat single partition order by queries as passthrough, as it can lead
to incorrect results for `ORDER BY VectorDistance` and `ORDER BY RANK`
queries. This PR fixes the issue by adding a check for non-streaming
order by queries in the passthrough query creation logic.
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)1 parent 243a3ca commit 523d8d8
5 files changed
Lines changed: 462 additions & 248 deletions
File tree
- Microsoft.Azure.Cosmos
- src/Query/Core/Pipeline
- CrossPartition/HybridSearch
- tests/Microsoft.Azure.Cosmos.EmulatorTests/Query
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| 309 | + | |
308 | 310 | | |
309 | 311 | | |
310 | 312 | | |
| |||
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| 294 | + | |
| 295 | + | |
292 | 296 | | |
293 | 297 | | |
294 | 298 | | |
| |||
950 | 954 | | |
951 | 955 | | |
952 | 956 | | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
953 | 970 | | |
954 | 971 | | |
955 | 972 | | |
| |||
1026 | 1043 | | |
1027 | 1044 | | |
1028 | 1045 | | |
1029 | | - | |
| 1046 | + | |
1030 | 1047 | | |
1031 | 1048 | | |
1032 | 1049 | | |
| |||
0 commit comments