MCPcopy Create free account
hub / github.com/apache/datafusion / test_count

Function test_count

datafusion/core/tests/fuzz_cases/aggregate_fuzz.rs:192–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191#[tokio::test(flavor = "multi_thread")]
192async fn test_count() {
193 let data_gen_config = baseline_config();
194
195 // Queries like SELECT count(a), count(distinct) FROM fuzz_table GROUP BY b
196 let query_builder = QueryBuilder::new()
197 .with_table_name("fuzz_table")
198 .with_aggregate_function("count")
199 .with_distinct_aggregate_function("count")
200 // count work for all arguments
201 .with_aggregate_arguments(data_gen_config.all_columns())
202 .with_dataset_sort_keys(data_gen_config.sort_keys_set.clone())
203 .set_group_by_columns(data_gen_config.all_columns());
204
205 AggregationFuzzerBuilder::from(data_gen_config)
206 .add_query_builder(query_builder)
207 .build()
208 .run()
209 .await;
210}
211
212#[tokio::test(flavor = "multi_thread")]
213async fn test_median() {

Callers

nothing calls this directly

Calls 13

baseline_configFunction · 0.85
newFunction · 0.85
set_group_by_columnsMethod · 0.80
with_table_nameMethod · 0.80
all_columnsMethod · 0.80
add_query_builderMethod · 0.80
cloneMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…