File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ impl VarianceGroupsAccumulator {
470
470
471
471
if let StatsType :: Sample = self . stats_type {
472
472
counts. iter_mut ( ) . for_each ( |count| {
473
- * count -= 1 ;
473
+ * count = count . saturating_sub ( 1 ) ;
474
474
} ) ;
475
475
}
476
476
let nulls = NullBuffer :: from_iter ( counts. iter ( ) . map ( |& count| count != 0 ) ) ;
Original file line number Diff line number Diff line change @@ -567,13 +567,13 @@ set datafusion.sql_parser.dialect = 'Postgres';
567
567
568
568
# csv_query_stddev_12
569
569
query IR
570
- SELECT c2, var_samp(c12) FILTER (WHERE c12 > 0.90 ) FROM aggregate_test_100 GROUP BY c2 ORDER BY c2
570
+ SELECT c2, var_samp(c12) FILTER (WHERE c12 > 0.95 ) FROM aggregate_test_100 GROUP BY c2 ORDER BY c2
571
571
----
572
- 1 0.000889240174
573
- 2 0.000785878272
572
+ 1 0.000791243479
573
+ 2 0.000061521903
574
574
3 NULL
575
575
4 NULL
576
- 5 0.000269544643
576
+ 5 NULL
577
577
578
578
# Restore the default dialect
579
579
statement ok
You can’t perform that action at this time.
0 commit comments