Hi,
I've been migrating data to Snowflake. I figured out how to have my local workflows output to Snowflake tables and found articles on using post-SQL to add primary keys.
For another data set, the data will already be in Snowflake, so I wanted to experiment with in-DB tools to speed up the process. Two items I have questions on:
(1) the raw data is all varchar(254). With a local workflow, I can use the Select tool or AutoField to change field types and sizes before outputting to Snowflake. The in-DB Select tool only lets me change the names. From other articles, it sounds like my only option is to use the Formula tool to change the name and then use cast (...) to change the type/size if desired? Are there other options?
(2) With the local workflow, I added post-SQL to the output tool to set the primary keys for the table. Is there a way to set primary keys when using in-DB tools? Basically, I want to read data from the raw source table, change fields names/types, add some calcs, then output to a new table and set the primary key(s) all with in-DB tools.
Thanks,
Jeff