I am trying to create the table below:
create or replace table great_table as (
SELECT
$1:test::STRING as testt,
$1:testt::STRING as account_name,
$1:testttt::STRING as testttt,
$1:testttttt::DATE as testttttt
from '@A_STAGE/20210510/object_name/part'
)
;
But I want to get all data from 2021, and not have to reconfigure the bucket structure. Is there a way to do regex from snowflake within the stage name? So something like
@A_STAGE/202%/object_name/part'