How to bulk insert Array in snowflake?

Viewed 325

I am ingesting data in snowflake using the following command:

 copy into ArrayTable from (select $1, array_construct($2),array_construct($3) 

 from @ArrayTable_stage/ArrayTable-1-1.csv.gz) 
    
 file_format = (TYPE=CSV FIELD_DELIMITER='|' FIELD_OPTIONALLY_ENCLOSED_BY='\"')

But the array_construct() is not feasible for insertion of multiple tables since I have to manually specify columns which are of ARRAY datatype.

What is the alternative method for bulk insertion of Arrays in snowflake?

2 Answers
Related