I'm trying to unload data from my table from snowflake to s3, like this:
COPY INTO "@DATABASE.SCHEMA.MY_STAGE/my_view/year=2023/month=04/day=21/my_view_data.parquet"
FROM (
SELECT *
FROM my_table
WHERE to_date(event_time) = '2023-04-21'
)
HEADER = true
But I'm receiving this error:
COPY statement only supports simple SELECT from stage statements for import
I don't understand why, I've created my stage with format file = parquet. I've tried before without the header = true and it worked. Has someone any thoughts? Thanks!!