nooberfsh / prusto

A presto/trino client library written in rust.
MIT License
37 stars 23 forks source link

SHOW CREATE MATERIALIZED VIEW gives empty data #31

Open sap-nocops opened 1 year ago

sap-nocops commented 1 year ago

hello, I need to execute this query SHOW CREATE MATERIALIZED VIEW view_name

I'm using method get_all, I can see from trino's console that the query is executed and finish properly but the client gives me empty_data error

I tried both using a String and a struct containing a string as model to map the result but no luck. how can I achieve this?

thank you

nooberfsh commented 1 year ago

Hi, you can use Row for generic data, check out this example.