
Query
Query
yaml
type: "io.kestra.plugin.jdbc.snowflake.Query"Examples
yaml
id: snowflake_query
namespace: company.team
tasks:
- id: select
type: io.kestra.plugin.jdbc.snowflake.Query
url: jdbc:snowflake://<account_identifier>.snowflakecomputing.com
username: snowflake_user
password: snowflake_password
sql: select * from demo_db.public.customers
fetchType: FETCH
- id: generate_update
type: io.kestra.plugin.jdbc.snowflake.Query
url: jdbc:snowflake://<account_identifier>.snowflakecomputing.com
username: snowflake_user
password: snowflake_password
sql: "INSERT INTO demo_db.public.customers_new (year_month, store_code, update_date) values {% for row in outputs.update.rows %} ({{ row.year_month }}, {{ row.store_code }}, TO_DATE('{{ row.date }}', 'MONTH DD, YYYY') ) {% if not loop.last %}, {% endif %}; {% endfor %}"
Properties
sql*Requiredstring
url*Requiredstring
afterSQLstring
databasestring
fetchSizeintegerstring
Default
10000fetchTypestring
Default
NONEPossible Values
STOREFETCHFETCH_ONENONEparametersobject
passwordstring
privateKeystring
privateKeyPasswordstring
queryTagstring
rolestring
schemastring
timeZoneIdstring
usernamestring
warehousestring
Outputs
rowobject
rowsarray
SubTypeobject
sizeinteger
uristring
Format
uriMetrics
fetch.sizecounter
Unit
rows