should be it
This commit is contained in:
12
external/duckdb/tools/juliapkg/test/test_threading.jl
vendored
Normal file
12
external/duckdb/tools/juliapkg/test/test_threading.jl
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# test_threading.jl
|
||||
|
||||
@testset "Test threading" begin
|
||||
con = DBInterface.connect(DuckDB.DB)
|
||||
|
||||
DBInterface.execute(con, "CREATE TABLE integers AS SELECT * FROM range(100000000) t(i)")
|
||||
results = DBInterface.execute(con, "SELECT SUM(i) sum FROM integers")
|
||||
df = DataFrame(results)
|
||||
@test df.sum == [4999999950000000]
|
||||
|
||||
DBInterface.close!(con)
|
||||
end
|
||||
Reference in New Issue
Block a user