alamb commented on code in PR #14975: URL: https://github.com/apache/datafusion/pull/14975#discussion_r2004255473
########## datafusion/core/tests/memory_limit/mod.rs: ########## @@ -468,6 +470,83 @@ async fn test_stringview_external_sort() { let _ = df.collect().await.expect("Query execution failed"); } +// Tests for disk limit (`max_temp_directory_size` in `DiskManager`) +// ------------------------------------------------------------------ + +// Create a new `SessionContext` with speicified disk limit and memory pool limit +async fn setup_context( + disk_limit: u64, + memory_pool_limit: usize, +) -> Result<SessionContext> { + let disk_manager = DiskManager::try_new_without_arc(DiskManagerConfig::NewOs)? + .with_max_temp_directory_size(disk_limit)?; + + let runtime = RuntimeEnvBuilder::new() Review Comment: - I filed https://github.com/apache/datafusion/issues/15319 to track -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org