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

Function test_min

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

Source from the content-addressed store, hash-verified

75// - AVG (unstable given the wide range of inputs)
76#[tokio::test(flavor = "multi_thread")]
77async fn test_min() {
78 let data_gen_config = baseline_config();
79
80 // Queries like SELECT min(a) FROM fuzz_table GROUP BY b
81 let query_builder = QueryBuilder::new()
82 .with_table_name("fuzz_table")
83 .with_aggregate_function("min")
84 // min works on all column types
85 .with_aggregate_arguments(data_gen_config.all_columns())
86 .with_dataset_sort_keys(data_gen_config.sort_keys_set.clone())
87 .set_group_by_columns(data_gen_config.all_columns());
88
89 AggregationFuzzerBuilder::from(data_gen_config)
90 .add_query_builder(query_builder)
91 .build()
92 .run()
93 .await;
94}
95
96#[tokio::test(flavor = "multi_thread")]
97async fn test_first_val() {

Callers

nothing calls this directly

Calls 12

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
buildMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…