Код: Выделить всё
with pretty_email_results as procedure()
returns string
language python
packages = ('snowflake-snowpark-python', 'tabulate')
handler = 'x'
runtime_version=3.8
as
$$
def x(session):
printed = session.sql(
"select * from table"
).to_pandas().to_markdown()
session.call('system$send_email',
'my_email_int',
'[email protected]',
'Email Alert: Task A has finished.',
printed)
$$
call pretty_email_results();
Подробнее здесь: https://stackoverflow.com/questions/771 ... d-in-email