Apache Iceberg version
main (development)
Please describe the bug 🐞
As seen in #1571 and #1759
The bind function uses the visitors pattern. The recursion depth is determined by both the schema and the expression passed to the function. When either the schema or expression is deeply nested, the visitor runs into the RecursionError
A temporary workaround can be to override the system recursion limit
import sys
sys.setrecursionlimit(5000)
from #1759 (comment)
Willingness to contribute