06-18-2021 02:03 PM
I am working on a Snaplogic pipeline to copy data from Oracle to Snowflake. A few tables at source have BLOB column which needs to be copied. Snaplogic sees them as “Base64 encoded data” but Snowflake needs the data in HEX format. I would like to know if its possible to convert the data as required and load into Snowflake tables. I’ve attached a sample pipeline.
TEST_2021_06_18.slp (7.1 KB)
06-21-2021 05:07 PM
Thanks for clearing that, Peter. From your experience, how does Snaplogic handle copying binary data into Snowflake from any kind of source RDBMS - Oracle BLOB specifically? If Snaplogic can’t handle binary data, then I have to find a way to run snowflake commands from either Snaplogic or ditch snaplogic completely and go another route. snowflake has command to encode/decode data but I am not sure how to run those command from Snaplogic GUI. There isn’t enough documentation on the internet on either Snaplogic and/or Snowflake for me to make a clear determination.
If you can suggest some workarounds/pointers, that will be much appreciated.
Anand
06-21-2021 05:13 PM
(minor correction: my name is Patrick, not Peter)
I’m afraid I’m completely unfamiliar with our Snowflake snaps, so I’ll ask one of our devs who’s familiar with Snowflake to respond.
06-21-2021 05:18 PM
BTW, which Snowflake snap(s) are you trying to use? Insert? Bulk Load? other?
06-21-2021 07:58 PM
Sorry for misstating your name, Patrick. I am using “SNOWFLAKE - BULK UPSERT” snap.
06-21-2021 09:28 PM
No worries. The doc for that snap suggests you can use the File format option
property for this. I think you’d set it to BINARY_FORMAT=BASE64
. You would need to ensure your binary content is Base64 encoded using Base64.encode($CONTENT)
, etc.