Open anna-geller opened 1 year ago
@anna-geller the Query
task uses plain SQL so what you try to achieve cannot be don.
Keep in mind that task must handle specifically outputs from internal storage, {{outputs.extract.uri}}
will resolve to something like kestra:///namespace/flow/exec/...
.
For this to work you must use a local file so the WorkingDirectory
and the LocalFiles
task may allow to do such thing.
Or we may provide a Put
task.
By the way, there is an Upload
task, does it provide this functionality?
it does, I added blueprint for it https://demo.kestra.io/ui/blueprints/community/81
but Ludo agreed that we should support plain PUT command as well because it's more flexible
We should create a dedicated task for that, the Query task doesn't seem to fit the PUT command
sure why not
The default Snowflake tutorial runs PUT queries from the SnowSQL CLI so query would work but if you have a specific design in mind for the PUT task, can you share how would it look like? https://docs.snowflake.com/en/user-guide/getting-started-tutorial-stage-data-files
the common use is to run PUT and then COPY INTO which are just SQL statements albeit specific ones I agree
Issue description
Reproducible example: