I have an internal named stage where json files are stored and from there I want to store them in snowflake table. The structure of destination table is as follows,
file_name (string)
load_date (timestamp)
data (variant)
I am using the following query to move the data from stage to table
copy into tableName (data) from @stagename/filename.json;
But the above query is only populating the data column, what I want is to insert the timestamp and filename too. Any idea what changes I need to make in the query? Thanks