mik-laj commented on issue #24456: URL: https://github.com/apache/airflow/issues/24456#issuecomment-1162407551
I thought to just add Snowpark session creation support to the `SnowflakeHook` class. If the user uses the new [Task Flow API](https://airflow.apache.org/docs/apache-airflow/stable/tutorial_taskflow_api.html), we will have a very simple and readable code. ```python @task() def get_count(): session = SnowflakeHook( snowflake_conn_id="conn-id" ).get_snowpark_session() return session.sql("SELECT count(*) FROM sample_product_data").collect() ``` -- 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]
