r/dataengineering•
py_root

Snowflake - How to change table schema of existing table.

Help

I have a table in snowflake which contains around 15M rows. Now for few columns I need to convert it's type from varchar to numeric and datetime. Currently snowflake doesn't support this. So, I have created a new table and moving data from old table to the new one using python.

However, after 6 hours of running the code stopped due to session error and only half of the data loaded in new table. Now it's hard to see which rows are missing because there is no any primary key or unique column.

So, Is there any other efficient way I can use to accomplish the task?

#snowflake #dataloading

Posted Jan 15, 2022, 5:26 AM UTC

18
Loading comments…