Commit 7127c20
committed
Fix MIN/MAX to preserve dictionary types in execution
Update get_min_max_result_type to maintain Dictionary<K, V>
instead of unwrapping to V, allowing planned MIN/MAX execution to
utilize the dictionary-aware accumulator. Add end-to-end SQL
regression test to ensure MIN/MAX properly ignores unreferenced
dictionary values and preserves dictionary-typed output schema.
Adjust unit expectations for dictionary coercion tests to reflect
new planned-path behavior.1 parent 9240400 commit 7127c20
2 files changed
Lines changed: 63 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
445 | 483 | | |
446 | 484 | | |
447 | 485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
77 | 71 | | |
78 | 72 | | |
79 | 73 | | |
| |||
1223 | 1217 | | |
1224 | 1218 | | |
1225 | 1219 | | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
1226 | 1224 | | |
1227 | 1225 | | |
1228 | 1226 | | |
| |||
1237 | 1235 | | |
1238 | 1236 | | |
1239 | 1237 | | |
1240 | | - | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
1241 | 1245 | | |
1242 | 1246 | | |
1243 | 1247 | | |
| |||
1254 | 1258 | | |
1255 | 1259 | | |
1256 | 1260 | | |
1257 | | - | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
1258 | 1265 | | |
1259 | 1266 | | |
1260 | 1267 | | |
1261 | 1268 | | |
1262 | | - | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1263 | 1273 | | |
1264 | 1274 | | |
1265 | 1275 | | |
| |||
0 commit comments