You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "if0ne (via GitHub)" <gi...@apache.org> on 2025/11/11 08:05:33 UTC
[I] rust/driver/datafusion: using datafusion in async runtime [arrow-adbc]
if0ne opened a new issue, #3711:
URL: https://github.com/apache/arrow-adbc/issues/3711
### What happened?
This code
```rust
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn test_running_in_async() {
let mut connection = get_connection();
execute_update(&mut connection, "CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')");
let batch = execute_sql_query(&mut connection, "SELECT * FROM datafusion.public.example");
assert_eq!(batch.num_rows(), 3);
assert_eq!(batch.num_columns(), 2);
}
```
will throw an error:
```rust
running 1 test
thread 'test_running_in_async' panicked at /home/pagafonov/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/multi_thread/mod.rs:86:9:
Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test test_running_in_async ... FAILED
failures:
failures:
test_running_in_async
```
### Stack Trace
_No response_
### How can we reproduce the bug?
_No response_
### Environment/Setup
_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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] rust/driver/datafusion: using datafusion in async runtime [arrow-adbc]
Posted by "if0ne (via GitHub)" <gi...@apache.org>.
if0ne commented on issue #3711:
URL: https://github.com/apache/arrow-adbc/issues/3711#issuecomment-3515445271
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@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] rust/driver/datafusion: using datafusion in async runtime [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm closed issue #3711: rust/driver/datafusion: using datafusion in async runtime
URL: https://github.com/apache/arrow-adbc/issues/3711
--
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@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org