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

Function test_max

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

Source from the content-addressed store, hash-verified

149
150#[tokio::test(flavor = "multi_thread")]
151async fn test_max() {
152 let data_gen_config = baseline_config();
153
154 // Queries like SELECT max(a) FROM fuzz_table GROUP BY b
155 let query_builder = QueryBuilder::new()
156 .with_table_name("fuzz_table")
157 .with_aggregate_function("max")
158 // max works on all column types
159 .with_aggregate_arguments(data_gen_config.all_columns())
160 .with_dataset_sort_keys(data_gen_config.sort_keys_set.clone())
161 .set_group_by_columns(data_gen_config.all_columns());
162
163 AggregationFuzzerBuilder::from(data_gen_config)
164 .add_query_builder(query_builder)
165 .build()
166 .run()
167 .await;
168}
169
170#[tokio::test(flavor = "multi_thread")]
171async fn test_sum() {

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…