Skip to content

Add a Snowflake PUT task to load data from internal storage #138

@anna-geller

Description

@anna-geller

Issue description

Reproducible example:

id: snowflakeTutorial
namespace: dev

tasks:
  - id: createDB
    type: io.kestra.plugin.jdbc.snowflake.Query
    sql: CREATE OR REPLACE DATABASE KESTRA;

  - id: createTable
    type: io.kestra.plugin.jdbc.snowflake.Query
    sql: |
      CREATE OR REPLACE TABLE KESTRA.PUBLIC.EMPLOYEES (
        first_name STRING ,
        last_name STRING ,
        email STRING ,
        streetaddress STRING ,
        city STRING ,
        start_date DATE
        );

  - id: extract
    type: io.kestra.plugin.fs.http.Download
    uri: https://raw.githubusercontent.com/kestra-io/examples/main/datasets/employees01.csv

  - id: load
    type: io.kestra.plugin.jdbc.snowflake.Query
    sql: put file://{{outputs.extract.uri}} @kestra.public.%employees

taskDefaults:
  - type: io.kestra.plugin.jdbc.snowflake.Query
    values:
      url: jdbc:snowflake://accountid.snowflakecomputing.com?warehouse=DEMO
      username: ANNA
      password: 'password'

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/pluginPlugin-related issue or feature requestgood first issueGreat issue for new contributors
    No fields configured for Feature.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions