Skip to content

Commit 275bd1f

Browse files
committed
enlarge stack
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
1 parent bf60b20 commit 275bd1f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ insta = { workspace = true }
177177
paste = { workspace = true }
178178
rand = { workspace = true, features = ["small_rng"] }
179179
rand_distr = "0.5"
180+
recursive = { workspace = true }
180181
regex = { workspace = true }
181182
rstest = { workspace = true }
182183
serde_json = { workspace = true }

datafusion/core/tests/sql/unparser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ use datafusion_physical_plan::ExecutionPlanProperties;
4747
use datafusion_sql::unparser::Unparser;
4848
use datafusion_sql::unparser::dialect::DefaultDialect;
4949
use itertools::Itertools;
50+
use recursive::{set_minimum_stack_size, set_stack_allocation_size};
5051

5152
/// Paths to benchmark query files (supports running from repo root or different working directories).
5253
const BENCHMARK_PATHS: &[&str] = &["../../benchmarks/", "./benchmarks/"];
@@ -458,5 +459,8 @@ async fn test_clickbench_unparser_roundtrip() {
458459

459460
#[tokio::test]
460461
async fn test_tpch_unparser_roundtrip() {
462+
// Grow stacker segments earlier to avoid deep unparser recursion overflow in q20.
463+
set_minimum_stack_size(512 * 1024);
464+
set_stack_allocation_size(8 * 1024 * 1024);
461465
run_roundtrip_tests("TPC-H", tpch_queries(), tpch_test_context).await;
462466
}

0 commit comments

Comments
 (0)