Forum Discussion

amubeen's avatar
amubeen
New Contributor II
5 years ago

Loading Null values into Snowflake DB via Bulk Load Snap

Hey All,

So I’m trying to load certain columns from a csv file into snowflake, but facing some issues.

I have the file, properly parsed it via the csv parser, and I’ve also used a mapper to map the columns properly. However, I need snaplogic to be able to do tell snowflake, if the entry in this row says “(null)” or “(None)” to treat it as a NULL insert in the bulk load.

Is there a way to do this?

For example, say I have a snowflake DB with column that accepts only 1 char, a Y or N. The row from the dataset has a “(null)” as the entry for that column, which is causing an issue since it is > 1 char. Is there a way for snaplogic to understand “(null)” means NULL and insert a NULL into snowflake via the bulk load snap?

Thank you!