Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snowflake_conn_id not a template_field in SnowflakeSqlApiOperator #46421

Closed
2 tasks done
bbossy opened this issue Feb 4, 2025 · 1 comment · Fixed by #46422
Closed
2 tasks done

snowflake_conn_id not a template_field in SnowflakeSqlApiOperator #46421

bbossy opened this issue Feb 4, 2025 · 1 comment · Fixed by #46422
Labels
area:providers good first issue kind:feature Feature Requests needs-triage label for new issues that we didn't triage yet provider:snowflake Issues related to Snowflake provider

Comments

@bbossy
Copy link
Contributor

bbossy commented Feb 4, 2025

Apache Airflow Provider(s)

snowflake

Versions of Apache Airflow Providers

apache-airflow-providers-snowflake==5.8.1

Apache Airflow version

2.10.4

Operating System

Debian Bookwork

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

What happened

SnowflakeSqlApiOperator's snowflake_conn_id field is not templatable, unlike the other Snowflake Operators where snowflake_conn_id is a template_field.

What you think should happen instead

SnowflakeSqlApiOperator's snowflake_conn_id field should be a template_field to be consistent with the other operators.

How to reproduce

from airflow import DAG
from airflow.providers.snowflake.operators.snowflake import SnowflakeSqlApiOperator
import pendulum

with DAG(
  dag_id='snowflake',
  start_date=pendulum.datetime(2025,1,1),
  schedule=None,
  catchup=False,
):
  SnowflakeSqlApiOperator(
    task_id='snowflake',
    snowflake_conn_id='snowflake-{{var.value.some_var}}',
    sql='select 'hello' as hello;'
  )

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@bbossy bbossy added area:providers kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Feb 4, 2025
Copy link

boring-cyborg bot commented Feb 4, 2025

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.

@dosubot dosubot bot added kind:feature Feature Requests provider:snowflake Issues related to Snowflake provider labels Feb 4, 2025
@potiuk potiuk added good first issue and removed kind:bug This is a clearly a bug labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers good first issue kind:feature Feature Requests needs-triage label for new issues that we didn't triage yet provider:snowflake Issues related to Snowflake provider
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants