You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/05/31 18:14:52 UTC

[GitHub] [arrow-datafusion] alamb commented on pull request #6505: Fix builds fail with error: symbol `init___rust_ctor___ctor` is already defined #6495

alamb commented on PR #6505:
URL: https://github.com/apache/arrow-datafusion/pull/6505#issuecomment-1570695848

   > Not a massive fan of the use of static constructors, but as this is a pre-existing pattern 👍
   
   FWIW the only alternative I know is to do what we do in IOx and sprinkle setup in all the tests:
   
   https://github.com/search?q=repo%3Ainfluxdata/influxdb_iox%20maybe_start_logging&type=code
   
   e.g. 
   ```rust
       #[test]
       fn test_panic_counter_and_logging() {
           maybe_start_logging();
   ```
   
   Do you know a better pattern to enable logging during unit test run?


-- 
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@arrow.apache.org

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