Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate memory use in debug builds for deeply nested array constants #11499

Closed
alamb opened this issue Jul 16, 2024 · 0 comments · Fixed by #12384
Closed

Investigate memory use in debug builds for deeply nested array constants #11499

alamb opened this issue Jul 16, 2024 · 0 comments · Fixed by #12384
Labels
enhancement New feature or request

Comments

@alamb
Copy link
Contributor

alamb commented Jul 16, 2024

Is your feature request related to a problem or challenge?

While upgrading to a new version of SQL parser , @MohamedAbdeen21 in #11453 we found that this query:

select array_ndims(array_repeat(array_repeat(array_repeat(1, 3), 2), 1)), array_ndims([[[[[[[[[[[[[[[[[[[[[1]]]]]]]]]]]]]]]]]]]]]);

Causes a stack overflow in debug builds. There is no overflow on release builds.

To reproduce remove the workaround added in #11453 (specifically remove the stack size override):

.thread_stack_size(STACK_SIZE)

And then run this command

cargo test --features=backtrace --test sqllogictests -- array.slt

I ran the program under lldb and here is the stack trace on my M3 mac

(lldb) target create "/Users/andrewlamb/Software/datafusion/target/debug/deps/sqllogictests-ac42652c86ad174a"
Current executable set to '/Users/andrewlamb/Software/datafusion/target/debug/deps/sqllogictests-ac42652c86ad174a' (arm64).
(lldb) run
Process 71406 launched: '/Users/andrewlamb/Software/datafusion/target/debug/deps/sqllogictests-ac42652c86ad174a' (arm64)
(lldb) bt
(lldb) thread backtrace
* thread #4, name = 'tokio-runtime-worker', stop reason = �[31mEXC_BAD_ACCESS (code=2, address=0x17021bff0)�[0m
  * frame #0: �[33m0x000000010015eaa8�[0m sqllogictests-ac42652c86ad174a`core::ptr::read_volatile::precondition_check::hf7ae97eea9784816(addr=<unavailable>, align=0) at �[36mub_checks.rs�[0m:�[33m64�[0m
    frame #1: �[33m0x000000010056a610�[0m sqllogictests-ac42652c86ad174a`alloc::alloc::alloc::h35bb2b9d1fa8d32a at �[36mub_checks.rs�[0m:�[33m73�[0m:�[33m17�[0m
    frame #2: �[33m0x000000010056a5e4�[0m sqllogictests-ac42652c86ad174a`alloc::alloc::alloc::h35bb2b9d1fa8d32a(layout=Layout @ 0x000000017021c008) at �[36malloc.rs�[0m:�[33m98�[0m:�[33m9�[0m
    frame #3: �[33m0x000000010056a73c�[0m sqllogictests-ac42652c86ad174a`alloc::alloc::Global::alloc_impl::h0457a5da59b28ec3(self=0x0000000000000001, layout=Layout @ 0x000000017021c0b0, zeroed=false) at �[36malloc.rs�[0m:�[33m183�[0m:�[33m73�[0m
    frame #4: �[33m0x000000010056a58c�[0m sqllogictests-ac42652c86ad174a`alloc::alloc::exchange_malloc::hfa50229b37808378 at �[36malloc.rs�[0m:�[33m243�[0m:�[33m9�[0m
    frame #5: �[33m0x000000010056a578�[0m sqllogictests-ac42652c86ad174a`alloc::alloc::exchange_malloc::hfa50229b37808378(size=32, align=8) at �[36malloc.rs�[0m:�[33m332�[0m:�[33m18�[0m
    frame #6: �[33m0x000000010017ff88�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr::h2ff0e8a146a45a93(self=0x00000001703ff270, sql=<unavailable>, schema=0x00006000002a3940, planner_context=0x000000017021dc58) at �[36mmod.rs�[0m:�[33m67�[0m:�[33m25�[0m
    frame #7: �[33m0x0000000100138fb4�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::_$u7b$$u7b$closure$u7d$$u7d$::hd77cfb386f009aed(element=<unavailable>) at �[36mvalue.rs�[0m:�[33m144�[0m:�[33m17�[0m
    frame #8: �[33m0x00000001003b8d88�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::map::map_try_fold::_$u7b$$u7b$closure$u7d$$u7d$::hc2d7a57769576c2b(acc=<unavailable>, elt=<unavailable>) at �[36mmap.rs�[0m:�[33m96�[0m:�[33m28�[0m
    frame #9: �[33m0x000000010050ee88�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::try_fold::he6904ec7d95c9139(self=0x000000017021f258, init=<unavailable>, f={closure_env#0}<sqlparser::ast::Expr, core::result::Result<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError>, (), core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, ()>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>, core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>> @ 0x000000017021e7e0) at �[36miterator.rs�[0m:�[33m2410�[0m:�[33m21�[0m
    frame #10: �[33m0x00000001003a2ae8�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h4735bf7f64bdaf02(self=0x000000017021f258, init=<unavailable>, g={closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x000000017021e808) at �[36mmap.rs�[0m:�[33m122�[0m:�[33m9�[0m
    frame #11: �[33m0x00000001005d2f40�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h0ec4e279a8e32e3d(self=0x000000017021f258, init=<unavailable>, f={closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x000000017021e85f) at �[36mmod.rs�[0m:�[33m201�[0m:�[33m9�[0m
    frame #12: �[33m0x00000001005d0e64�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::haa640898d9ff18e1 at �[36miterator.rs�[0m:�[33m2472�[0m:�[33m9�[0m
    frame #13: �[33m0x00000001005d0e54�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::haa640898d9ff18e1(self=0x000000017021f258) at �[36mmod.rs�[0m:�[33m184�[0m:�[33m14�[0m
    frame #14: �[33m0x00000001001de2fc�[0m sqllogictests-ac42652c86ad174a`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter_nested..SpecFromIterNested$LT$T$C$I$GT$$GT$::from_iter::h0a544a1a59bae07f(iterator=<unavailable>) at �[36mspec_from_iter_nested.rs�[0m:�[33m26�[0m:�[33m32�[0m
    frame #15: �[33m0x0000000100257f78�[0m sqllogictests-ac42652c86ad174a`alloc::vec::in_place_collect::_$LT$impl$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$u20$for$u20$alloc..vec..Vec$LT$T$GT$$GT$::from_iter::h28bd6c3936396d49(iterator=<unavailable>) at �[36min_place_collect.rs�[0m:�[33m245�[0m:�[33m9�[0m
    frame #16: �[33m0x000000010026c63c�[0m sqllogictests-ac42652c86ad174a`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$T$GT$$GT$::from_iter::hc4d35fafb59fcf91(iter=<unavailable>) at �[36mmod.rs�[0m:�[33m2972�[0m:�[33m9�[0m
    frame #17: �[33m0x000000010053ade0�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::_$u7b$$u7b$closure$u7d$$u7d$::h11ba652124830586 at �[36miterator.rs�[0m:�[33m2004�[0m:�[33m9�[0m
    frame #18: �[33m0x000000010053addc�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::_$u7b$$u7b$closure$u7d$$u7d$::h11ba652124830586((null)=0x000000017021f2f7, i=<unavailable>) at �[36mresult.rs�[0m:�[33m1935�[0m:�[33m51�[0m
    frame #19: �[33m0x00000001005f3aa0�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::try_process::hc02972ea3a35822f(iter=<unavailable>, f={closure_env#0}<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError, alloc::vec::Vec<datafusion_expr::expr::Expr, alloc::alloc::Global>, core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>> @ 0x000000017021f2f7) at �[36mmod.rs�[0m:�[33m170�[0m:�[33m17�[0m
    frame #20: �[33m0x0000000100539858�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::h192073e1a8f55489(iter=<unavailable>) at �[36mresult.rs�[0m:�[33m1935�[0m:�[33m9�[0m
    frame #21: �[33m0x00000001003ae09c�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::collect::h2a11199afaa8fa12(self=<unavailable>) at �[36miterator.rs�[0m:�[33m2004�[0m:�[33m9�[0m
    frame #22: �[33m0x0000000100174a6c�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::h4d44e9d8cbf97873(self=0x00000001703ff270, elements=<unavailable>, schema=0x00006000002a3940) at �[36mvalue.rs�[0m:�[33m141�[0m:�[33m22�[0m
    frame #23: �[33m0x0000000100182a2c�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr_internal::h9b44f811d2436c9f(self=0x00000001703ff270, sql=Expr @ 0x0000000170230250, schema=0x00006000002a3940, planner_context=0x0000000170231558) at �[36mmod.rs�[0m:�[33m199�[0m:�[33m36�[0m
    frame #24: �[33m0x00000001001803fc�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr::h2ff0e8a146a45a93(self=0x00000001703ff270, sql=Expr @ 0x0000000170231430, schema=0x00006000002a3940, planner_context=0x0000000170231558) at �[36mmod.rs�[0m:�[33m82�[0m:�[33m40�[0m
    frame #25: �[33m0x0000000100138fb4�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::_$u7b$$u7b$closure$u7d$$u7d$::hd77cfb386f009aed(element=<unavailable>) at �[36mvalue.rs�[0m:�[33m144�[0m:�[33m17�[0m
    frame #26: �[33m0x00000001003b8d88�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::map::map_try_fold::_$u7b$$u7b$closure$u7d$$u7d$::hc2d7a57769576c2b(acc=<unavailable>, elt=<unavailable>) at �[36mmap.rs�[0m:�[33m96�[0m:�[33m28�[0m
    frame #27: �[33m0x000000010050ee88�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::try_fold::he6904ec7d95c9139(self=0x0000000170232b58, init=<unavailable>, f={closure_env#0}<sqlparser::ast::Expr, core::result::Result<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError>, (), core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, ()>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>, core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>> @ 0x00000001702320e0) at �[36miterator.rs�[0m:�[33m2410�[0m:�[33m21�[0m
    frame #28: �[33m0x00000001003a2ae8�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h4735bf7f64bdaf02(self=0x0000000170232b58, init=<unavailable>, g={closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x0000000170232108) at �[36mmap.rs�[0m:�[33m122�[0m:�[33m9�[0m
    frame #29: �[33m0x00000001005d2f40�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h0ec4e279a8e32e3d(self=0x0000000170232b58, init=<unavailable>, f={closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x000000017023215f) at �[36mmod.rs�[0m:�[33m201�[0m:�[33m9�[0m
    frame #30: �[33m0x00000001005d0e64�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::haa640898d9ff18e1 at �[36miterator.rs�[0m:�[33m2472�[0m:�[33m9�[0m
    frame #31: �[33m0x00000001005d0e54�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::haa640898d9ff18e1(self=0x0000000170232b58) at �[36mmod.rs�[0m:�[33m184�[0m:�[33m14�[0m
    frame #32: �[33m0x00000001001de2fc�[0m sqllogictests-ac42652c86ad174a`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter_nested..SpecFromIterNested$LT$T$C$I$GT$$GT$::from_iter::h0a544a1a59bae07f(iterator=<unavailable>) at �[36mspec_from_iter_nested.rs�[0m:�[33m26�[0m:�[33m32�[0m
    frame #33: �[33m0x0000000100257f78�[0m sqllogictests-ac42652c86ad174a`alloc::vec::in_place_collect::_$LT$impl$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$u20$for$u20$alloc..vec..Vec$LT$T$GT$$GT$::from_iter::h28bd6c3936396d49(iterator=<unavailable>) at �[36min_place_collect.rs�[0m:�[33m245�[0m:�[33m9�[0m
    frame #34: �[33m0x000000010026c63c�[0m sqllogictests-ac42652c86ad174a`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$T$GT$$GT$::from_iter::hc4d35fafb59fcf91(iter=<unavailable>) at �[36mmod.rs�[0m:�[33m2972�[0m:�[33m9�[0m
    frame #35: �[33m0x000000010053ade0�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::_$u7b$$u7b$closure$u7d$$u7d$::h11ba652124830586 at �[36miterator.rs�[0m:�[33m2004�[0m:�[33m9�[0m
    frame #36: �[33m0x000000010053addc�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::_$u7b$$u7b$closure$u7d$$u7d$::h11ba652124830586((null)=0x0000000170232bf7, i=<unavailable>) at �[36mresult.rs�[0m:�[33m1935�[0m:�[33m51�[0m
    frame #37: �[33m0x00000001005f3aa0�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::try_process::hc02972ea3a35822f(iter=<unavailable>, f={closure_env#0}<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError, alloc::vec::Vec<datafusion_expr::expr::Expr, alloc::alloc::Global>, core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>> @ 0x0000000170232bf7) at �[36mmod.rs�[0m:�[33m170�[0m:�[33m17�[0m
    frame #38: �[33m0x0000000100539858�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::h192073e1a8f55489(iter=<unavailable>) at �[36mresult.rs�[0m:�[33m1935�[0m:�[33m9�[0m
    frame #39: �[33m0x00000001003ae09c�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::collect::h2a11199afaa8fa12(self=<unavailable>) at �[36miterator.rs�[0m:�[33m2004�[0m:�[33m9�[0m
    frame #40: �[33m0x0000000100174a6c�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::h4d44e9d8cbf97873(self=0x00000001703ff270, elements=<unavailable>, schema=0x00006000002a3940) at �[36mvalue.rs�[0m:�[33m141�[0m:�[33m22�[0m
    frame #41: �[33m0x0000000100182a2c�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr_internal::h9b44f811d2436c9f(self=0x00000001703ff270, sql=Expr @ 0x0000000170243b50, schema=0x00006000002a3940, planner_context=0x0000000170244e58) at �[36mmod.rs�[0m:�[33m199�[0m:�[33m36�[0m
    frame #42: �[33m0x00000001001803fc�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr::h2ff0e8a146a45a93(self=0x00000001703ff270, sql=Expr @ 0x0000000170244d30, schema=0x00006000002a3940, planner_context=0x0000000170244e58) at �[36mmod.rs�[0m:�[33m82�[0m:�[33m40�[0m
    frame #43: �[33m0x0000000100138fb4�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::_$u7b$$u7b$closure$u7d$$u7d$::hd77cfb386f009aed(element=<unavailable>) at �[36mvalue.rs�[0m:�[33m144�[0m:�[33m17�[0m
    frame #44: �[33m0x00000001003b8d88�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::map::map_try_fold::_$u7b$$u7b$closure$u7d$$u7d$::hc2d7a57769576c2b(acc=<unavailable>, elt=<unavailable>) at �[36mmap.rs�[0m:�[33m96�[0m:�[33m28�[0m
    frame #45: �[33m0x000000010050ee88�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::try_fold::he6904ec7d95c9139(self=0x0000000170246458, init=<unavailable>, f={closure_env#0}<sqlparser::ast::Expr, core::result::Result<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError>, (), core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, ()>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>, core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>> @ 0x00000001702459e0) at �[36miterator.rs�[0m:�[33m2410�[0m:�[33m21�[0m
    frame #46: �[33m0x00000001003a2ae8�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h4735bf7f64bdaf02(self=0x0000000170246458, init=<unavailable>, g={closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x0000000170245a08) at �[36mmap.rs�[0m:�[33m122�[0m:�[33m9�[0m
    frame #47: �[33m0x00000001005d2f40�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h0ec4e279a8e32e3d(self=0x0000000170246458, init=<unavailable>, f={closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x0000000170245a5f) at �[36mmod.rs�[0m:�[33m201�[0m:�[33m9�[0m
    frame #48: �[33m0x00000001005d0e64�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::haa640898d9ff18e1 at �[36miterator.rs�[0m:�[33m2472�[0m:�[33m9�[0m
    frame #49: �[33m0x00000001005d0e54�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::haa640898d9ff18e1(self=0x0000000170246458) at �[36mmod.rs�[0m:�[33m184�[0m:�[33m14�[0m
    frame #50: �[33m0x00000001001de2fc�[0m sqllogictests-ac42652c86ad174a`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter_nested..SpecFromIterNested$LT$T$C$I$GT$$GT$::from_iter::h0a544a1a59bae07f(iterator=<unavailable>) at �[36mspec_from_iter_nested.rs�[0m:�[33m26�[0m:�[33m32�[0m
    frame #51: �[33m0x0000000100257f78�[0m sqllogictests-ac42652c86ad174a`alloc::vec::in_place_collect::_$LT$impl$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$u20$for$u20$alloc..vec..Vec$LT$T$GT$$GT$::from_iter::h28bd6c3936396d49(iterator=<unavailable>) at �[36min_place_collect.rs�[0m:�[33m245�[0m:�[33m9�[0m
    frame #52: �[33m0x000000010026c63c�[0m sqllogictests-ac42652c86ad174a`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$T$GT$$GT$::from_iter::hc4d35fafb59fcf91(iter=<unavailable>) at �[36mmod.rs�[0m:�[33m2972�[0m:�[33m9�[0m
    frame #53: �[33m0x000000010053ade0�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::_$u7b$$u7b$closure$u7d$$u7d$::h11ba652124830586 at �[36miterator.rs�[0m:�[33m2004�[0m:�[33m9�[0m
    frame #54: �[33m0x000000010053addc�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::_$u7b$$u7b$closure$u7d$$u7d$::h11ba652124830586((null)=0x00000001702464f7, i=<unavailable>) at �[36mresult.rs�[0m:�[33m1935�[0m:�[33m51�[0m
    frame #55: �[33m0x00000001005f3aa0�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::try_process::hc02972ea3a35822f(iter=<unavailable>, f={closure_env#0}<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError, alloc::vec::Vec<datafusion_expr::expr::Expr, alloc::alloc::Global>, core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>> @ 0x00000001702464f7) at �[36mmod.rs�[0m:�[33m170�[0m:�[33m17�[0m
    frame #56: �[33m0x0000000100539858�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::h192073e1a8f55489(iter=<unavailable>) at �[36mresult.rs�[0m:�[33m1935�[0m:�[33m9�[0m
    frame #57: �[33m0x00000001003ae09c�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::collect::h2a11199afaa8fa12(self=<unavailable>) at �[36miterator.rs�[0m:�[33m2004�[0m:�[33m9�[0m
    frame #58: �[33m0x0000000100174a6c�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::h4d44e9d8cbf97873(self=0x00000001703ff270, elements=<unavailable>, schema=0x00006000002a3940) at �[36mvalue.rs�[0m:�[33m141�[0m:�[33m22�[0m
    frame #59: �[33m0x0000000100182a2c�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr_internal::h9b44f811d2436c9f(self=0x00000001703ff270, sql=Expr @ 0x0000000170257450, schema=0x00006000002a3940, planner_context=0x0000000170258758) at �[36mmod.rs�[0m:�[33m199�[0m:�[33m36�[0m
    frame #60: �[33m0x00000001001803fc�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr::h2ff0e8a146a45a93(self=0x00000001703ff270, sql=Expr @ 0x0000000170258630, schema=0x00006000002a3940, planner_context=0x0000000170258758) at �[36mmod.rs�[0m:�[33m82�[0m:�[33m40�[0m
    frame #61: �[33m0x0000000100138fb4�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::_$u7b$$u7b$closure$u7d$$u7d$::hd77cfb386f009aed(element=<unavailable>) at �[36mvalue.rs�[0m:�[33m144�[0m:�[33m17�[0m
    frame #62: �[33m0x00000001003b8d88�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::map::map_try_fold::_$u7b$$u7b$closure$u7d$$u7d$::hc2d7a57769576c2b(acc=<unavailable>, elt=<unavailable>) at �[36mmap.rs�[0m:�[33m96�[0m:�[33m28�[0m
    frame #63: �[33m0x000000010050ee88�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::try_fold::he6904ec7d95c9139(self=0x0000000170259d58, init=<unavailable>, f={closure_env#0}<sqlparser::ast::Expr, core::result::Result<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError>, (), core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, ()>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>, core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>> @ 0x00000001702592e0) at �[36miterator.rs�[0m:�[33m2410�[0m:�[33m21�[0m
    frame #64: �[33m0x00000001003a2ae8�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h4735bf7f64bdaf02(self=0x0000000170259d58, init=<unavailable>, g={closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x0000000170259308) at �[36mmap.rs�[0m:�[33m122�[0m:�[33m9�[0m
    frame #65: �[33m0x00000001005d2f40�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h0ec4e279a8e32e3d(self=0x0000000170259d58, init=<unavailable>, f={closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x000000017025935f) at �[36mmod.rs�[0m:�[33m201�[0m:�[33m9�[0m
    frame #66: �[33m0x00000001005d0e64�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::haa640898d9ff18e1 at �[36miterator.rs�[0m:�[33m2472�[0m:�[33m9�[0m
    frame #67: �[33m0x00000001005d0e54�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..GenericShunt$LT$I$C$R$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::haa640898d9ff18e1(self=0x0000000170259d58) at �[36mmod.rs�[0m:�[33m184�[0m:�[33m14�[0m
    frame #68: �[33m0x00000001001de2fc�[0m sqllogictests-ac42652c86ad174a`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..spec_from_iter_nested..SpecFromIterNested$LT$T$C$I$GT$$GT$::from_iter::h0a544a1a59bae07f(iterator=<unavailable>) at �[36mspec_from_iter_nested.rs�[0m:�[33m26�[0m:�[33m32�[0m
    frame #69: �[33m0x0000000100257f78�[0m sqllogictests-ac42652c86ad174a`alloc::vec::in_place_collect::_$LT$impl$u20$alloc..vec..spec_from_iter..SpecFromIter$LT$T$C$I$GT$$u20$for$u20$alloc..vec..Vec$LT$T$GT$$GT$::from_iter::h28bd6c3936396d49(iterator=<unavailable>) at �[36min_place_collect.rs�[0m:�[33m245�[0m:�[33m9�[0m
    frame #70: �[33m0x000000010026c63c�[0m sqllogictests-ac42652c86ad174a`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$T$GT$$GT$::from_iter::hc4d35fafb59fcf91(iter=<unavailable>) at �[36mmod.rs�[0m:�[33m2972�[0m:�[33m9�[0m
    frame #71: �[33m0x000000010053ade0�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::_$u7b$$u7b$closure$u7d$$u7d$::h11ba652124830586 at �[36miterator.rs�[0m:�[33m2004�[0m:�[33m9�[0m
    frame #72: �[33m0x000000010053addc�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::_$u7b$$u7b$closure$u7d$$u7d$::h11ba652124830586((null)=0x0000000170259df7, i=<unavailable>) at �[36mresult.rs�[0m:�[33m1935�[0m:�[33m51�[0m
    frame #73: �[33m0x00000001005f3aa0�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::try_process::hc02972ea3a35822f(iter=<unavailable>, f={closure_env#0}<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError, alloc::vec::Vec<datafusion_expr::expr::Expr, alloc::alloc::Global>, core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>> @ 0x0000000170259df7) at �[36mmod.rs�[0m:�[33m170�[0m:�[33m17�[0m
    frame #74: �[33m0x0000000100539858�[0m sqllogictests-ac42652c86ad174a`_$LT$core..result..Result$LT$V$C$E$GT$$u20$as$u20$core..iter..traits..collect..FromIterator$LT$core..result..Result$LT$A$C$E$GT$$GT$$GT$::from_iter::h192073e1a8f55489(iter=<unavailable>) at �[36mresult.rs�[0m:�[33m1935�[0m:�[33m9�[0m
    frame #75: �[33m0x00000001003ae09c�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::collect::h2a11199afaa8fa12(self=<unavailable>) at �[36miterator.rs�[0m:�[33m2004�[0m:�[33m9�[0m
    frame #76: �[33m0x0000000100174a6c�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::h4d44e9d8cbf97873(self=0x00000001703ff270, elements=<unavailable>, schema=0x00006000002a3940) at �[36mvalue.rs�[0m:�[33m141�[0m:�[33m22�[0m
    frame #77: �[33m0x0000000100182a2c�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr_internal::h9b44f811d2436c9f(self=0x00000001703ff270, sql=Expr @ 0x000000017026ad50, schema=0x00006000002a3940, planner_context=0x000000017026c058) at �[36mmod.rs�[0m:�[33m199�[0m:�[33m36�[0m
    frame #78: �[33m0x00000001001803fc�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_expr_to_logical_expr::h2ff0e8a146a45a93(self=0x00000001703ff270, sql=Expr @ 0x000000017026bf30, schema=0x00006000002a3940, planner_context=0x000000017026c058) at �[36mmod.rs�[0m:�[33m82�[0m:�[33m40�[0m
    frame #79: �[33m0x0000000100138fb4�[0m sqllogictests-ac42652c86ad174a`datafusion_sql::expr::value::_$LT$impl$u20$datafusion_sql..planner..SqlToRel$LT$S$GT$$GT$::sql_array_literal::_$u7b$$u7b$closure$u7d$$u7d$::hd77cfb386f009aed(element=<unavailable>) at �[36mvalue.rs�[0m:�[33m144�[0m:�[33m17�[0m
    frame #80: �[33m0x00000001003b8d88�[0m sqllogictests-ac42652c86ad174a`core::iter::adapters::map::map_try_fold::_$u7b$$u7b$closure$u7d$$u7d$::hc2d7a57769576c2b(acc=<unavailable>, elt=<unavailable>) at �[36mmap.rs�[0m:�[33m96�[0m:�[33m28�[0m
    frame #81: �[33m0x000000010050ee88�[0m sqllogictests-ac42652c86ad174a`core::iter::traits::iterator::Iterator::try_fold::he6904ec7d95c9139(self=0x000000017026d658, init=<unavailable>, f={closure_env#0}<sqlparser::ast::Expr, core::result::Result<datafusion_expr::expr::Expr, datafusion_common::error::DataFusionError>, (), core::ops::control_flow::ControlFlow<core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, ()>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>, core::iter::adapters::{impl#0}::try_fold::{closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>> @ 0x000000017026cbe0) at �[36miterator.rs�[0m:�[33m2410�[0m:�[33m21�[0m
    frame #82: �[33m0x00000001003a2ae8�[0m sqllogictests-ac42652c86ad174a`_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::try_fold::h4735bf7f64bdaf02(self=0x000000017026d658, init=<unavailable>, g={closure_env#0}<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<sqlparser::ast::Expr, alloc::alloc::Global>, datafusion_sql::expr::value::{impl#0}::sql_array_literal::{closure_env#0}<datafusion::execution::session_state::SessionContextProvider>>, core::result::Result<core::convert::Infallible, datafusion_common::error::DataFusionError>, (), core::iter::traits::iterator::Iterator::try_for_each::call::{closure_env#0}<datafusion_expr::expr::Expr, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>, fn(datafusion_expr::expr::Expr) -> core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>>, core::ops::control_flow::ControlFlow<datafusion_expr::expr::Expr, ()>> @ 0x000000017026cc08) at �[36mmap.rs�[0m:�[33m122�[0m:�[33m9�[0m
...
    frame #508: �[33m0x0000000103cb110c�[0m sqllogictests-ac42652c86ad174a`std::sys::pal::unix::thread::Thread::new::thread_start::h50a0ef5291b272f3 [inlined] _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::h435242b988184cd5 at �[36mboxed.rs�[0m:�[33m2022�[0m:�[33m9�[0m [opt]
    frame #509: �[33m0x0000000103cb1100�[0m sqllogictests-ac42652c86ad174a`std::sys::pal::unix::thread::Thread::new::thread_start::h50a0ef5291b272f3 [inlined] _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::h4e377725be3abcb1 at �[36mboxed.rs�[0m:�[33m2022�[0m:�[33m9�[0m [opt]
    frame #510: �[33m0x0000000103cb10fc�[0m sqllogictests-ac42652c86ad174a`std::sys::pal::unix::thread::Thread::new::thread_start::h50a0ef5291b272f3 at �[36mthread.rs�[0m:�[33m108�[0m:�[33m17�[0m [opt]
    frame #511: �[33m0x000000018b2eef94�[0m libsystem_pthread.dylib`_pthread_start + 136

Describe the solution you'd like

Figure out if there is some way to reduce the stack size back to normal (2MB rather than 2.5MB) or if the increased stack size is indicative of something more serious,

Describe alternatives you've considered

I think something in sqlparser has grown the stack space slightly so now we are hitting stack overflows. Maybe if we can find what exactly is on the stack when it overflows we can refactor datafusion (e.g. break a single large function into multiple smaller ones) to work around the issue

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant