Skip to content
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

Update SqlToSlackApiFileOperator with new param to check empty output #38079

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

andyguwc
Copy link
Contributor

@andyguwc andyguwc commented Mar 12, 2024

This PR adds a new param to the SqlToSlackApiFileOperator to optionally allow skipping sending an empty file.

closes: #37191


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

@andyguwc andyguwc force-pushed the tianyou/slack-file-operator branch from a29bdf6 to 012fc39 Compare March 12, 2024 18:37
airflow/providers/slack/transfers/sql_to_slack.py Outdated Show resolved Hide resolved
tests/providers/slack/transfers/test_sql_to_slack.py Outdated Show resolved Hide resolved
tests/providers/slack/transfers/test_sql_to_slack.py Outdated Show resolved Hide resolved
tests/providers/slack/transfers/test_sql_to_slack.py Outdated Show resolved Hide resolved
airflow/providers/slack/transfers/sql_to_slack.py Outdated Show resolved Hide resolved
airflow/providers/slack/transfers/sql_to_slack.py Outdated Show resolved Hide resolved
@andyguwc andyguwc force-pushed the tianyou/slack-file-operator branch 2 times, most recently from 1f5ea1f to c49f8e0 Compare March 15, 2024 16:12
@andyguwc andyguwc requested a review from Taragolis March 15, 2024 16:33
@eladkal eladkal changed the title fix: Update SqlToSlackApiFileOperator with new param to check empty output Update SqlToSlackApiFileOperator with new param to check empty output Mar 16, 2024
Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

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

LGTM

@andyguwc andyguwc force-pushed the tianyou/slack-file-operator branch from c49f8e0 to 1d4d180 Compare March 18, 2024 16:40
@Taragolis Taragolis merged commit d8381ed into apache:main Mar 18, 2024
46 checks passed
utkarsharma2 pushed a commit to astronomer/airflow that referenced this pull request Apr 22, 2024
…apache#38079)

* fix: Update SqlToSlackApiFileOperator with new param to check empty output

* fix: skip sending slack instead of raising exception

* fix: update param to allow different ways to handle an empty df

* Apply suggestions from code review

fmt: make formatting changes

Co-authored-by: Andrey Anshin <[email protected]>

---------

Co-authored-by: Andrey Anshin <[email protected]>
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.

SqlToSlackApiFileOperator - Empty files
4 participants