Pranav2612000 opened a new issue, #3840:
URL: https://github.com/apache/arrow-adbc/issues/3840
### What happened?
Here's a sample test
```
#[test]
fn test_driver_setup() {
const SNOWFLAKE_DRIVER_NAME: &str = "snowflake";
let mut driver = ManagedDriver::load_from_name(
SNOWFLAKE_DRIVER_NAME,
None,
AdbcVersion::default(),
LOAD_FLAG_DEFAULT,
None,
)
.unwrap();
println!("Driver loaded");
}
```
Here's the output on running the test
```
Finished `test` profile [unoptimized + debuginfo] target(s) in 11.79s
Running unittests src/lib.rs (target/debug/deps/<redacted>)
running 1 test
Driver loaded
```
As you see, the test never completes. Debugging further, I've pinpointed the
issue to the ADBC FFI init function ( FFI_AdbcDriverInitFunc ) (
[here](https://github.com/apache/arrow-adbc/blob/4a3b8eb940a138a7517fbdcf43d7b53692db5130/rust/driver_manager/src/lib.rs#L387)
)
On the same machine, the following
[code](https://github.com/Pranav2612000/snowflake-adbc-test/blob/master/src/main.rs)
works as expected, with a clean shutdown
### Stack Trace
-
### How can we reproduce the bug?
Sample test case shared above
### Environment/Setup
rust version -> rustc 1.86.0 (05f9846f8 2025-03-31)
Cargo.toml dependencies
```
adbc_core = "0.21.0"
adbc_driver_manager = "0.21.0"
arrow = { version = "57.0.0", features = ["prettyprint"] }
arrow-array = "57.0.0"
async-trait = "0.1.89"
dhat = { version = "0.3.3", optional = true }
tikv-jemallocator = "0.6.0"
tokio = { version = "1.45.1", features = ["full", "test-util"] }
tokio-executor = "0.1.10"
tokio-executor-trait = "2.1.1"
tokio-reactor-trait = "2.0.0"
tokio-retry = "0.3.0"
tokio-stream = "0.1.16"
```
`build.rs` contains script to generate gRPC code and linking for GPU stuff
Snowflake driver downloaded using dbc
--
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]