Does anyone have a yaml with a working target-sno...
# troubleshooting
j
Does anyone have a yaml with a working target-snowflake destination? Still having issues so if someone is loading data to snowflake would love some help
v
p
@jaye_howell yeah the link Derek shared is a production meltano project using snowflake. What issues are you running into?
j
i was trying to use the meltano variant, not the transferwise. Fomr the looks it seems transferwise requires 1) an S3 bucket or some other external stage in snowflake 2) it converts the extract output to CSV for loading to snowflake. The extracts (unless it escapes things) will have issues as a CSV formated file.
I was hoping the meltano was using json or some other format to load
p
@jaye_howell no for the transferwise variant you dont need to create an S3 bucket/external stage. The target uses an internal stage by default but has an advanced feature that allows you to use an external stage if you want to.
I dont use an external stage
for point 2 I dont know for sure but I think it does handle all escaping properly. The stage/file format piece is an implementation detail in my mind, like the user shouldnt really have to be concerned with it. I've sent a solid variety of data through it and never had an issue with it being CSV in the intermediate loading area
Also the meltano variant thats listed is basically deprecated soon to be replaced by https://github.com/MeltanoLabs/target-snowflake although thats still being developed. See #C04BG3978NT for chatter around that
j
ok working on the transferwise variant load now so will see how that goes
p
Also in case you missed it, dont forget to create the file format object https://hub.meltano.com/loaders/target-snowflake#dependencies
j
i see it says cant connect to snowflake backend
p
Try removing the
.<http://snowflakecomputing.com|snowflakecomputing.com>
from your account ID. I think its only supposed to be the ID before that
j
yea i just did and seem to work...was comparing it to the yaml above
p
you're seeing data in snowflake?!? seems like its working then
j
yes
thank you @pat_nadolny @christoph @thomas_briggs For your help...now with POC done. Need to look at how changed data is handled, how to add columns if needed and other things
p
Since youre using the transferwise variant you can check out their schema change docs https://transferwise.github.io/pipelinewise/user_guide/schema_changes.html. I thought they were pretty good
c
Need to look at how changed data is handled
Preemptively posting this link ... 😁 https://stackoverflow.com/q/71669574/6056177