You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee8b7c2
Browse filesBrowse the repository at this point in the historyBrowse files
let session_config = SessionConfig::new().with_target_partitions(4);// Make sure the configuration is the same if test is running on different machines
176
+
validate_query_with_memory_limits_and_config(
177
+
expected_mem_bytes,
178
+
mem_limit_bytes,
179
+
query,
180
+
baseline_query,
181
+
session_config,
182
+
None,
183
+
None,
184
+
)
185
+
.await;
186
+
}
187
+
188
+
/// Validate memory usage with a custom session configuration and optional
let session_config = SessionConfig::new().with_target_partitions(4);// Make sure the configuration is the same if test is running on different machines
155
-
156
217
let ctx = SessionContext::new_with_config_rt(session_config, runtime);
157
218
158
219
let df = ctx.sql(query).await.unwrap();
220
+
let physical_plan = df.create_physical_plan().await.unwrap();
221
+
222
+
ifletSome(expected) = expected_operator_name {
223
+
let plan_display = displayable(physical_plan.as_ref()).indent(true).to_string();
224
+
assert!(
225
+
plan_display.contains(expected),
226
+
"expected physical plan to contain `{expected}`, but got:\n{plan_display}",
227
+
);
228
+
}
229
+
159
230
// Run a query with 10% data to estimate the constant overhead
160
-
let df_small = ctx.sql(baseline_query).await.unwrap();
0 commit comments