Create a Trino database with some data in it, and try to select it out with get_all. It doesn't work?
#[tokio::main]
async fn main() {
let user = "admin".to_string();
let host = "localhost".to_string();
let port = 8080;
let catalog = "iceberg".to_string();
let sql = "SELECT event_id, timestamp, message FROM simba.events".to_string();
let cli = ClientBuilder::new(user, host)
.port(port)
.catalog(catalog)
.build()
.unwrap();
let data = cli.get_all::<Row>(sql).await.unwrap().into_vec();
for r in data {
println!("{:?}", r)
}
}
Did some digging, and I can see the data coming back in the "data" field, but that doesn't make it into the QueryResult deserialization:
Create a Trino database with some data in it, and try to select it out with get_all. It doesn't work?
Did some digging, and I can see the data coming back in the "data" field, but that doesn't make it into the QueryResult deserialization: