Skip to content

Conversation

@guan404ming
Copy link
Member

@guan404ming guan404ming commented Apr 2, 2025

Related Issue

closes: #48246

How

Moved the self.log.info(...) call for the SQL statement from inside the with closing(...) block to directly before it.

Why

Ensures the statement is logged before execution attempt, guaranteeing the log appears even if conn.execute fails immediately. This aids debugging.


^ 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.

@guan404ming guan404ming changed the title fix: logs SQL before execution in ExasolHook refactor: logs SQL before execution in ExasolHook Apr 2, 2025
@guan404ming
Copy link
Member Author

Hi, @bugraoz93 thanks for reviewing. It seems like the CI worked well. Are we good to merge?

@uranusjr uranusjr merged commit 254a4ef into apache:main Apr 3, 2025
61 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Apr 3, 2025

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

@guan404ming guan404ming deleted the logs-before-execution-in-ExasolHook branch April 3, 2025 08:17
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
diogotrodrigues pushed a commit to diogotrodrigues/airflow that referenced this pull request Apr 6, 2025
simonprydden pushed a commit to simonprydden/airflow that referenced this pull request Apr 8, 2025
@guan404ming guan404ming changed the title refactor: logs SQL before execution in ExasolHook Fix logs SQL before execution in ExasolHook Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ExasolHook logs SQL after execution

3 participants