Commit aefe065
committed
Address review feedback for percentile_cont(DISTINCT) accumulator
Follow-up to the DistinctPercentileContAccumulator fix, addressing
post-merge review comments:
- Use the fast foldhash RandomState for the `counts` map instead of the
standard library's default SipHash, matching GenericDistinctBuffer.
- Compute size() via estimate_memory_size, mirroring the other distinct
accumulators.
- Add a null-free fast path to update_batch and retract_batch that skips
the per-element validity check when the input array has no nulls.
- Add ORDER BY id to the sliding-window regression query in aggregate.slt
so its output row order is deterministic.
Co-authored-by: Claude Code1 parent 994fc81 commit aefe065
2 files changed
Lines changed: 34 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
672 | 674 | | |
673 | 675 | | |
674 | 676 | | |
675 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
676 | 682 | | |
677 | 683 | | |
678 | 684 | | |
| |||
709 | 715 | | |
710 | 716 | | |
711 | 717 | | |
712 | | - | |
713 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
714 | 727 | | |
715 | 728 | | |
716 | 729 | | |
| |||
733 | 746 | | |
734 | 747 | | |
735 | 748 | | |
736 | | - | |
737 | | - | |
738 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
739 | 754 | | |
740 | 755 | | |
741 | 756 | | |
| |||
744 | 759 | | |
745 | 760 | | |
746 | 761 | | |
747 | | - | |
| 762 | + | |
748 | 763 | | |
749 | 764 | | |
750 | 765 | | |
751 | 766 | | |
752 | 767 | | |
753 | 768 | | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
754 | 779 | | |
755 | 780 | | |
756 | 781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | | - | |
| 1125 | + | |
| 1126 | + | |
1126 | 1127 | | |
1127 | 1128 | | |
1128 | 1129 | | |
| |||
0 commit comments