Apache DataFusion SQL Query Engine
make tests deterministic (#7771)
Alex Huang9f25634414a2
diff --git a/datafusion/sqllogictest/test_files/aggregate.slt b/datafusion/sqllogictest/test_files/aggregate.sltindex d0e41b12b8..64bf64d23c 100644--- a/datafusion/sqllogictest/test_files/aggregate.slt+++ b/datafusion/sqllogictest/test_files/aggregate.slt@@ -2318,6 +2318,7 @@ CREATE TABLE traces(trace_id varchar, timestamp bigint, other bigint) AS VALUES(NULL, 0, 0),('a', NULL, NULL),('a', 1, 1),+('a', -1, -1),('b', 0, 0),('c', 1, 1),('c', 2, 2),@@ -2357,26 +2358,26 @@ NULL 0query TIselect trace_id, MIN(timestamp) from traces group by trace_id order by MIN(timestamp) asc limit 4;----+a -1NULL 0b 0c 1-a 1query TIIselect trace_id, other, MIN(timestamp) from traces group by trace_id, other order by MIN(timestamp) asc limit 4;----+a -1 -1b 0 0NULL 0 0c 1 1-a 1 1query TIIselect trace_id, MIN(other), MIN(timestamp) from traces group by trace_id order by MIN(timestamp), MIN(other) limit 4;----+a -1 -1NULL 0 0b 0 0c 1 1-a 1 1statement okset datafusion.optimizer.enable_topk_aggregation = true;@@ -2468,10 +2469,10 @@ NULL 0query TIselect trace_id, MIN(timestamp) from traces group by trace_id order by MIN(timestamp) asc limit 4;----+a -1NULL 0b 0c 1-a 1query TIselect trace_id, MAX(timestamp) from traces group by trace_id order by MAX(timestamp) desc limit 3;@@ -2483,25 +2484,25 @@ a 1query TIselect trace_id, MIN(timestamp) from traces group by trace_id order by MIN(timestamp) asc limit 3;----+a -1NULL 0b 0-c 1query TIIselect trace_id, other, MIN(timestamp) from traces group by trace_id, other order by MIN(timestamp) asc limit 4;----+a -1 -1b 0 0NULL 0 0c 1 1-a 1 1query TIIselect trace_id, MIN(other), MIN(timestamp) from traces group by trace_id order by MIN(timestamp), MIN(other) limit 4;----+a -1 -1NULL 0 0b 0 0c 1 1-a 1 1## regr_*() tests