SameerMesiah97 commented on code in PR #70930:
URL: https://github.com/apache/airflow/pull/70930#discussion_r4200423609
##########
providers/snowflake/tests/system/snowflake/example_snowflake_cortex_agent.py:
##########
@@ -24,13 +24,21 @@
from datetime import datetime
from airflow import DAG
+from airflow.providers.snowflake.hooks.snowflake_cortex_agent import CreateMode
from airflow.providers.snowflake.operators.snowflake_cortex_agent import (
+ SnowflakeCortexAgentCreateOperator,
+ SnowflakeCortexAgentDeleteOperator,
SnowflakeCortexAgentOperator,
+ SnowflakeCortexAgentUpdateOperator,
)
SNOWFLAKE_CONN_ID = "my_snowflake_conn"
DAG_ID = "example_snowflake_cortex_agent"
+DATABASE = "DEFAULT_DATABASE"
+SCHEMA = "DEFAULT_SCHEMA"
+AGENT_NAME = "default_agent"
Review Comment:
The docstring has been updated to be more accurate and `AGENT_NAME` is now
being constructed dynamically using `ENV_ID` like this:
`AGENT_NAME = f"airflow_cortex_agent_{ENV_ID}"`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]