-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add requires_result_fetch Configuration to SQLExecuteQueryOperator #46997
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
Conversation
nevcohen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just add also unitest for this case
6339f7e to
91630a2
Compare
providers/common/sql/tests/unit/common/sql/operators/test_sql.py
Outdated
Show resolved
Hide resolved
providers/common/sql/tests/unit/common/sql/operators/test_sql.py
Outdated
Show resolved
Hide resolved
providers/common/sql/tests/unit/common/sql/operators/test_sql.py
Outdated
Show resolved
Hide resolved
91630a2 to
59739b4
Compare
|
@nevcohen |
59739b4 to
846a62b
Compare
nevcohen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All due respect! Looks great!
846a62b to
893d966
Compare
|
@potiuk |
893d966 to
6a1d049
Compare
|
Rebased and re-run - but there were some mypy checks. Please ping me if you solve them or in case rebase will see them green |
Seems like all checks have passed successfully |
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
…pache#46997) * Added configuration to allow fetch results in SQLExecuteQueryOperator * Fix Trino example with SQLExecuteQueryOperator * Add unit test for requires_result_fetch in SQLExecuteQueryOperator
…pache#46997) * Added configuration to allow fetch results in SQLExecuteQueryOperator * Fix Trino example with SQLExecuteQueryOperator * Add unit test for requires_result_fetch in SQLExecuteQueryOperator
…pache#46997) * Added configuration to allow fetch results in SQLExecuteQueryOperator * Fix Trino example with SQLExecuteQueryOperator * Add unit test for requires_result_fetch in SQLExecuteQueryOperator
This PR introduces a new configuration option within SQLExecuteQueryOperator: requires_output_processing.
When True, the operator ensures that query results are fetched, preventing premature cancellations (required for Trino and similar engines).
When False, it behaves as before, skipping result processing if not needed.
closes: #46808
related: #46808