-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Enhance SqlToSlackOperator
to support attachments
#9145
Comments
Is this taken? Can I work on this? I feel the
I'm thinking something along the lines of storing the dataframe as a csv in |
@kishvanchee it's not taken you can work on this. |
Should I be using Docstring for SlackWebhookHook says
This is confusing to me since I can attach list of dictionaries, but not file objects. While for SlackHook I can find a suitable call method which actually does the file upload.
This stackoverflow answer says that I can't use a webhook, but must use an api for file upload. The WebClient is what is actually being used in the
@JeffryMAC any thoughts? |
worth asking @simond as the author of the original PR and @feluelle @turbaszek who approved it. |
Oof, I can't really remember the reason I used the |
Ah okie. Does it make more sense to use I would appreciate any help @turbaszek @feluelle |
I think it would be best to reuse what we already have 👍 |
@turbaszek I can work on this one for the workshop. |
I thought @kishvanchee liked to work on that one? I think using SlackHook for the file upload makes sense and the use the SlackWebHook for the rest. |
@feluelle I am, I didn't get this assigned to me though. Although now I am confused whether I should be working on this... |
@kishvanchee please keep the issue and work on it if you would like. I was using this as a practice issue to learn how to contribute in the workshop that @turbaszek was teaching. I'm happy to grab a different issue. |
Thanks @fatmumuhomer :) |
@kishvanchee did you had time to work on it? |
@kishvanchee due to passed time I'm unassigning you. |
SqlToSlackOperator
to support attachments
Update: |
Hi @Taragolis, are you still working on adding an enhancement. Could I take up this issue? |
Hi @kevgeo I have a hectic weeks, so feel free to take this issue, you could grab some my previous changes if you find some useful parts. I have a plan to make changes in Slack hooks first however I really do not know when I have a time for that. |
Thanks @Taragolis, I will look into your previous PR too. |
Use case / motivation
following to #9023
Current implementation of SnowflakeToSlackOperator adds the data frame result to the slack message. That way it's not suitable for large data. Even 50 rows is too much. In some cases it's better to send the message with attachment as csv file.
The text was updated successfully, but these errors were encountered: