You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am owner of a Trino server running V415 .. attempting to query it via Julialang.. and the HTTP api doesn't make much sense to me .. so I grabbed JDBC and attempted to query a simple select * from my_table .. but getting an error
here's the code
using JDBC
using Tables
driver_path = "/home/emcp/drivers/trino-jdbc-415.jar"
JDBC.usedriver(driver_path)
JDBC.init()
cnxn = JDBC.Connection("jdbc:trino://mytrino-server:8080/hive/my", props=Dict("user" => "hive")) # create connection
csr = cursor(cnxn) # create cursor from connection
# execute some SQL
execute!(csr, "SELECT * FROM my.table")
# Create a Vector of NamedTuples from the cursor rows
rows_data = NamedTuple.(collect(rows(csr)))
# Convert the rows vector to a Table.jl table
table = Tables(rows_data)
close(csr)
as others have remarked the performance was quite bad, but I understand the state of the project is that it's a last ditch sort of thing.. but thought it'd be worth posting this as it may be occurring for others when getting started
I am owner of a Trino server running V415 .. attempting to query it via Julialang.. and the HTTP api doesn't make much sense to me .. so I grabbed JDBC and attempted to query a simple
select * from my_table
.. but getting an errorhere's the code
on the
collect
line it givesThe text was updated successfully, but these errors were encountered: