cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic keys in Redshift Bulk Upsert

nisars
New Contributor III

Hello,

We have a pipeline design(in concept) which will pick up files from source and upsert into the corresponding redshift table (currently scoping approximately 250 source files and target tables). We’d like to do this in a single pipeline by defining the source, target and keys (and other information) in the database.

We’ve hit a hurdle at the specifying the keys in the redshift bulk upsert snap (applies to other snaps too), each table has a different number of keys. Is it possible to define the keys in an array format perhaps?

Any suggestions to try will be greatly appreciated. It would also be interesting to see how other similar projects have been implemented.

Many thanks in advance,
Shasta

5 REPLIES 5

aditya_sharma
New Contributor III

Np Shasta. Let me know if you need more explanation or help regarding the solution I have provided to you.

Thanks
Aditya