You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2024/12/13 19:45:35 UTC

[I] Consider making the `recursive` dependency an optional feature [datafusion]

andygrove opened a new issue, #13766:
URL: https://github.com/apache/datafusion/issues/13766

   ### Is your feature request related to a problem or challenge?
   
   The addition of the `recursive` crate as a dependency in https://github.com/apache/datafusion/pull/13310 may cause issues for some downstream projects.
   
   For example, in the DataFusion Comet subproject, we started to see CI failures when running with `miri`.
   
   ```
   error: unsupported operation: can't call foreign function `rust_psm_stack_pointer` on OS `linux`
       --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/psm-0.1.24/src/lib.rs:319:14
        |
   319  |     unsafe { rust_psm_stack_pointer() }
        |              ^^^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function `rust_psm_stack_pointer` on OS `linux`
     
   ```
   
   For now, we disabled the miri checks, but we would prefer to keep them and opt out of the `recursive` feature when testing in CI.
   
   
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscribe@datafusion.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "blaginin (via GitHub)" <gi...@apache.org>.
blaginin commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543186845

   i’m curious if there are any cases when downstream can’t use recursive yet needs stack overflow protection 🤔 if so, we may need switch to iterative after all


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "peter-toth (via GitHub)" <gi...@apache.org>.
peter-toth commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543150144

   Seems like `rust_psm_stack_pointer ` is already on this wishlist for `miri`: https://github.com/rust-lang/miri/issues/2057


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "findepi (via GitHub)" <gi...@apache.org>.
findepi commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543138382

   > * [Add `#[recursive]` datafusion-sqlparser-rs#1522](https://github.com/apache/datafusion-sqlparser-rs/pull/1522)
   > 
   > Perhaps we can follow his model for making this feature optional in DataFusion
   
   Sounds simple.
   
   @berkaysynnada would you like to make a PR?
   


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "buraksenn (via GitHub)" <gi...@apache.org>.
buraksenn commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543167905

   take


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #13766: Making the `recursive` dependency an optional feature
URL: https://github.com/apache/datafusion/issues/13766


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2545954689

   > i’m curious if there are any cases when downstream can’t use recursive yet needs stack overflow protection 🤔 if so, we may need switch to iterative after all
   
   I think the challenge will  be that converting algorithms to an iterative approach is non trivial effort and will likely complicate the code. So if people can't use recursive but need more efficient stack usage, perhaps they can contribute changes to help improve DataFusion in this area


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "buraksenn (via GitHub)" <gi...@apache.org>.
buraksenn commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543167895

   Thanks for the heads up @berkaysynnada . Opened a PR to make it optional


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #13766: Making the `recursive` dependency an optional feature
URL: https://github.com/apache/datafusion/issues/13766


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "berkaysynnada (via GitHub)" <gi...@apache.org>.
berkaysynnada commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543143643

   cc @buraksenn 


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Consider making the `recursive` dependency an optional feature [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543106520

   @blaginin  has a PR to add recursive to sqlparser-rs as well:
   - https://github.com/apache/datafusion-sqlparser-rs/pull/1522
   
   Perhaps we can follow his model for making this feature optional in DataFusion


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2559842765

   I think this issue is not quite closed by https://github.com/apache/datafusion/pull/13778, reopening
   See https://github.com/apache/datafusion/issues/13334#issuecomment-2558576916 for details
   
   I will have another PR to fix shortly


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Consider making the `recursive` dependency an optional feature [datafusion]

Posted by "berkaysynnada (via GitHub)" <gi...@apache.org>.
berkaysynnada commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543059309

   I have experienced a similar problem for wasm, https://github.com/apache/datafusion/issues/13513. After disabling it, got no problem.


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543106793

   I have added this ticket to the the list of things we should fix before 44 release: https://github.com/apache/datafusion/issues/13334


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Making the `recursive` dependency an optional feature [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #13766:
URL: https://github.com/apache/datafusion/issues/13766#issuecomment-2543107565

   FYI @peter-toth 


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org