From 81ac8a24857d2180929b3324cf74ba3359f2d5ea Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 18 Sep 2024 20:21:22 -0400 Subject: [PATCH 1/2] remove a link which is no longer relevant --- dbt/include/snowflake/macros/materializations/table.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/snowflake/macros/materializations/table.sql b/dbt/include/snowflake/macros/materializations/table.sql index cbc6d9ce6..97192914d 100644 --- a/dbt/include/snowflake/macros/materializations/table.sql +++ b/dbt/include/snowflake/macros/materializations/table.sql @@ -81,7 +81,7 @@ def main(session): # df = model(dbt, session) # return df.collect() -# to run this in local notebook, you need to create a session following examples https://github.com/Snowflake-Labs/sfguide-getting-started-snowpark-python +# to run this in local notebook, you need to create a session connected to Snowpark # then you can do the following to run model # dbt = dbtObj(session.table) # df = model(dbt, session) From ccd3ebeb12f0905d1cf15f0ca5bd64cb736c426a Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 18 Sep 2024 20:27:36 -0400 Subject: [PATCH 2/2] remove a macro that only contains a docstring --- .../snowflake/macros/materializations/table.sql | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dbt/include/snowflake/macros/materializations/table.sql b/dbt/include/snowflake/macros/materializations/table.sql index 97192914d..9ee8a0b12 100644 --- a/dbt/include/snowflake/macros/materializations/table.sql +++ b/dbt/include/snowflake/macros/materializations/table.sql @@ -72,17 +72,3 @@ def main(session): materialize(session, df, dbt.this) return "OK" {% endmacro %} - -{% macro py_script_comment()%} -# To run this in snowsight, you need to select entry point to be main -# And you may have to modify the return type to text to get the result back -# def main(session): -# dbt = dbtObj(session.table) -# df = model(dbt, session) -# return df.collect() - -# to run this in local notebook, you need to create a session connected to Snowpark -# then you can do the following to run model -# dbt = dbtObj(session.table) -# df = model(dbt, session) -{%endmacro%}