uranusjr commented on code in PR #32359:
URL: https://github.com/apache/airflow/pull/32359#discussion_r1252590118


##########
airflow/providers/snowflake/transfers/snowflake_to_slack.py:
##########
@@ -25,12 +25,14 @@
 
 class SnowflakeToSlackOperator(SqlToSlackOperator):
     """
-    Executes an SQL statement in Snowflake and sends the results to Slack. The 
results of the query are
-    rendered into the 'slack_message' parameter as a Pandas dataframe using a 
JINJA variable called '{{
-    results_df }}'. The 'results_df' variable name can be changed by 
specifying a different
-    'results_df_name' parameter. The Tabulate library is added to the JINJA 
environment as a filter to
-    allow the dataframe to be rendered nicely. For example, set 
'slack_message' to {{ results_df |
-    tabulate(tablefmt="pretty", headers="keys") }} to send the results to 
Slack as an ascii rendered table.
+    Executes an SQL statement in Snowflake and sends the results to Slack.
+
+    The results of the query are rendered into the 'slack_message' parameter 
as a Pandas dataframe
+    using a JINJA variable called '{{results_df }}'. The 'results_df' variable 
name can be changed
+    by specifying a different 'results_df_name' parameter. The Tabulate 
library is added to the
+    JINJA environment as a filter to allow the dataframe to be rendered 
nicely. For example, set
+    'slack_message' to {{ results_df | tabulate(tablefmt="pretty", 
headers="keys") }} to send the
+    results to Slack as an ascii rendered table.

Review Comment:
   ```suggestion
       The results of the query are rendered into the 'slack_message' parameter 
as a Pandas dataframe
       using a Jinja variable called '{{ results_df }}'. The 'results_df' 
variable name can be changed
       by specifying a different 'results_df_name' parameter. The Tabulate 
library is added to the
       Jinja environment as a filter to allow the dataframe to be rendered 
nicely. For example, set
       'slack_message' to {{ results_df | tabulate(tablefmt="pretty", 
headers="keys") }} to send the
       results to Slack as an ASCII rendered table.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to