related to https://github.com/apache/datafusion/issues/12731 The issue is that unoptimized(debug) build consume more stack memory, which known to cause stack overflow if stack size is less than 1MiB. Expected change: 1. Return error on stack overflow 2. Reduce stack usage (or grow stack