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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to