Commit 936303e
committed
Handle empty filtered aggregate results
Return 0 for sum() on empty filtered views.
Return NaN for mean() and std() on empty filtered views.
Keep min()/max() raising because they have no identity.
Add tests for empty filtered aggregate behavior.1 parent 7ef6329 commit 936303e
2 files changed
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
| 1320 | + | |
| 1321 | + | |
1320 | 1322 | | |
1321 | 1323 | | |
1322 | 1324 | | |
| |||
1351 | 1353 | | |
1352 | 1354 | | |
1353 | 1355 | | |
1354 | | - | |
1355 | | - | |
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
| |||
1478 | 1478 | | |
1479 | 1479 | | |
1480 | 1480 | | |
1481 | | - | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1482 | 1484 | | |
1483 | 1485 | | |
1484 | 1486 | | |
| |||
1512 | 1514 | | |
1513 | 1515 | | |
1514 | 1516 | | |
1515 | | - | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
1516 | 1520 | | |
1517 | 1521 | | |
1518 | 1522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
378 | 378 | | |
379 | | - | |
380 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
381 | 385 | | |
382 | 386 | | |
383 | 387 | | |
| |||
466 | 470 | | |
467 | 471 | | |
468 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
469 | 478 | | |
470 | 479 | | |
471 | 480 | | |
| |||
499 | 508 | | |
500 | 509 | | |
501 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
502 | 516 | | |
503 | 517 | | |
504 | 518 | | |
| |||
0 commit comments