Skip to content

Conversation

@guan404ming
Copy link
Member

@guan404ming guan404ming commented Apr 8, 2025

Why

Enhancing logging capabilities in Snowflake and Databricks SQL hooks to provide better visibility into SQL execution. This improvement helps with debugging and monitoring by showing the actual SQL statements being executed before they are sent to the database for those would execute for a while. This change aligns with similar improvements made in ExasolHook in PR #48688.

How

  • Added logging of SQL statements before execution in the SnowflakeHook and DatabricksSqlHook

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:databricks provider:snowflake Issues related to Snowflake provider labels Apr 8, 2025
@guan404ming guan404ming force-pushed the log-before-execution branch 6 times, most recently from 3fa71ea to cc66b75 Compare April 18, 2025 15:55
@guan404ming guan404ming force-pushed the log-before-execution branch 2 times, most recently from 0772ddf to fdc9901 Compare April 19, 2025 11:28
@guan404ming guan404ming force-pushed the log-before-execution branch from bf97d3f to fdbc2fa Compare April 22, 2025 01:41
@eladkal eladkal merged commit f56bcf7 into apache:main Apr 22, 2025
67 checks passed
prabhusneha pushed a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
@guan404ming guan404ming changed the title enhance: logs SQL before execution in snowflake and databricks_sql Add logs SQL before execution in snowflake and databricks_sql Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants