Query
yaml
type: "io.kestra.plugin.jdbc.trino.query"
Examples
yaml
id: trino_query
namespace: company.team
tasks:
- id: analyze_orders
type: io.kestra.plugin.jdbc.trino.Query
url: jdbc:trino://localhost:8080/tpch
username: "{{ secret('TRINO_USERNAME') }}"
password: "{{ secret('TRINO_PASSWORD') }}"
sql: |
select orderpriority as priority, sum(totalprice) as total
from tpch.tiny.orders
group by orderpriority
order by orderpriority
fetchType: FETCH
fetchType: STORE
- id: csv_report
type: io.kestra.plugin.serdes.csv.IonToCsv
from: "{{ outputs.analyze_orders.uri }}"
Properties
url *Requiredstring
fetchSize integerstring
Default
10000
fetchType string
Default
NONE
Possible Values
STORE
FETCH
FETCH_ONE
NONE
parameters object
password string
sql string
timeZoneId string
username string
Outputs
row object
rows array
SubType object
size integer
uri string
Format
uri