Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented May 8, 2023

The change adds conditional processing of output based on criteria that can be overridden by the operator extending the common.sql BaseSQLOperator. Originally, output processing has only been happening if "do_xcom_push" was enabled, but in some cases we want to run processing also when do_xcom_push is disabled (for example in case of databricks SQL operator, it might be done when the output is redirected to a file).

This change enables it.

Fixes: #31080


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

Copy link
Contributor

@alexott alexott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

besides the naming comment by @uranusjr , the logic looks good

thank you Jarek

The change adds conditional processing of output based on
criteria that can be overridden by the operator extending the
common.sql BaseSQLOperator. Originally, output processing has only
been happening if "do_xcom_push" was enabled, but in some cases
we want to run processing also when do_xcom_push is disabled
(for example in case of databricks SQL operator, it might be
done when the output is redirected to a file).

This change enables it.

Fixes: apache#31080
@potiuk potiuk force-pushed the add-output-processing-when-output-file-used branch from e7223d0 to e6c6d68 Compare May 9, 2023 09:09
@potiuk
Copy link
Member Author

potiuk commented May 9, 2023

Fixed.

@potiuk potiuk merged commit edd7133 into apache:main May 9, 2023
@potiuk potiuk deleted the add-output-processing-when-output-file-used branch May 9, 2023 11:11
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.

SQLExecuteQueryOperator AttributeError exception when returning result to XCom

3 participants