Replies: 2 comments 2 replies
-
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You have to check if the fields is in template_fields. If not you can extend the operator and add it to your template_fields. The easiest way Extend the operator:
And use MyOperator instead of the OriginalOperator You can also likely do in your DAG:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apache Airflow version
Other Airflow 2 version (please specify below)
What happened
Airflow Version:2.5.1
While using MWAA, CopyFromExternalStageToSnowflakeOperator: Failed with error "Invalid regular expression pattern in airflow"
Error
snowflake.connector.errors.ProgrammingError: 091003 (22000):
Note: I am trying to use {{ ds_nodash }} variable in pattern. This variable value is not getting replaced in the pattern while generating copy into statement. However variable getting printed correctly in echo and works well with Snowflake operator - COPY TO as sql.
What you think should happen instead
No response
How to reproduce
Use CopyFromExternalStageToSnowflakeOperator and have pattern value contains the variable {{ ds_nodash }}
Operating System
Windows
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions