79317100

Date: 2024-12-30 08:30:05
Score: 2
Natty:
Report link

Create a UDF instead of the jinja macro that does the logic for get_current_catalog() and call it as a sql query in the python model:

query = "SELECT get_current_catalog() AS CURRENT_CATALOG" result = session.sql(query).to_pandas()

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Enas Jawdat