Commit a12a0e5
committed
Improve NDV propagation through statistics merge and projection
- Statistics merge: use max as conservative lower bound instead of
discarding NDV (duplicates may exist across partitions)
- Projection: preserve NDV for single-column expressions as upper bound1 parent 53f12f6 commit a12a0e5
2 files changed
Lines changed: 42 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
641 | 658 | | |
642 | 659 | | |
643 | 660 | | |
| |||
1357 | 1374 | | |
1358 | 1375 | | |
1359 | 1376 | | |
1360 | | - | |
1361 | | - | |
| 1377 | + | |
| 1378 | + | |
1362 | 1379 | | |
1363 | 1380 | | |
1364 | 1381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
715 | | - | |
716 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
717 | 733 | | |
718 | 734 | | |
719 | 735 | | |
| |||
2718 | 2734 | | |
2719 | 2735 | | |
2720 | 2736 | | |
2721 | | - | |
| 2737 | + | |
| 2738 | + | |
2722 | 2739 | | |
2723 | 2740 | | |
2724 | | - | |
| 2741 | + | |
2725 | 2742 | | |
2726 | 2743 | | |
2727 | 2744 | | |
| |||
0 commit comments