below copy command is not working , please correct me if something wrong.
copy into mytable
from @mystage
pattern='20.*csv.gz'
here i am trying to load the files which are starts with 20, there are mix of files which are having the name as 2021myfile.csv.gz, myfile202109.csv.gz, above command is not loading any files though there are files which starts with 20.
if i use pattern as pattern='.*20.*csv.gz' it is taking all the files which is wrong, i need to load only the files that are starts with 20.