Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions datafusion/core/tests/memory_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,10 @@ async fn merge_join() {
.await
}

/// 50 byte memory limit
const MEMORY_FRACTION: f64 = 0.95;

/// runs the specified query against 1000 rows with a 50
/// byte memory limit and no disk manager enabled
/// with default SessionConfig.
/// runs the specified query against 1000 rows with specified
/// memory limit and no disk manager enabled with default SessionConfig.
async fn run_limit_test(
query: &str,
expected_error_contains: Vec<&str>,
Expand Down Expand Up @@ -195,7 +193,6 @@ async fn run_limit_test_with_config(
let rt_config = RuntimeConfig::new()
// do not allow spilling
.with_disk_manager(DiskManagerConfig::Disabled)
// Only allow 50 bytes
.with_memory_limit(memory_limit, MEMORY_FRACTION);

let runtime = RuntimeEnv::new(rt_config).unwrap();
Expand Down