Skip to content

Apache DataFusion SQL Query Engine

chore: skip slow test under `force_hash_collisions` (#26594)

Neil Conway3e6058ddde49
diff --git a/datafusion/core/tests/memory_limit/mod.rs b/datafusion/core/tests/memory_limit/mod.rs
index 0faa4a64cf..858439f907 100644
--- a/datafusion/core/tests/memory_limit/mod.rs
+++ b/datafusion/core/tests/memory_limit/mod.rs
@@ -453,6 +453,10 @@ async fn group_by_count_distinct_utf8_view() {
/// the buffered slices are sorted: coalesced into runs for a single sort key,
/// and one run per slice otherwise. The in-place threshold is below the slice
/// size, so that coalescing keeps the slices as separate runs.
+///
+/// Skipped under `force_hash_collisions`, where the 100,000 colliding group
+/// keys make the aggregate quadratic and the test take many minutes.
+#[cfg(not(feature = "force_hash_collisions"))]
#[tokio::test]
async fn sort_after_group_by_reserves_shared_output_once() {
for order_by in ["group_key", "s desc, group_key"] {