You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2025/03/11 18:16:35 UTC

[I] [bug] `bind` visitor causes `RecursionError: maximum recursion depth exceeded` [iceberg-python]

kevinjqliu opened a new issue, #1785:
URL: https://github.com/apache/iceberg-python/issues/1785

   ### 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 https://github.com/apache/iceberg-python/issues/1759#issuecomment-2711738238
   
   
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] [bug] `bind` visitor causes `RecursionError: maximum recursion depth exceeded` [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #1785:
URL: https://github.com/apache/iceberg-python/issues/1785#issuecomment-2715331385

   Perhaps we'd want to convert the visitor to an iterative approach, for example #1783


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] [bug] `bind` visitor causes `RecursionError: maximum recursion depth exceeded` [iceberg-python]

Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko closed issue #1785: [bug] `bind` visitor causes `RecursionError: maximum recursion depth exceeded`
URL: https://github.com/apache/iceberg-python/issues/1785


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] [bug] `bind` visitor causes `RecursionError: maximum recursion depth exceeded` [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #1785:
URL: https://github.com/apache/iceberg-python/issues/1785#issuecomment-2715338526

   more details in https://github.com/apache/iceberg-python/issues/1759#issuecomment-2715325319


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] [bug] `bind` visitor causes `RecursionError: maximum recursion depth exceeded` [iceberg-python]

Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko closed issue #1785: [bug] `bind` visitor causes `RecursionError: maximum recursion depth exceeded`
URL: https://github.com/apache/iceberg-python/issues/1785


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org