Skip to content
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

Updates for dbt-py models on Snowpark #3164

Open
1 task done
jtcohen6 opened this issue Apr 10, 2023 · 0 comments
Open
1 task done

Updates for dbt-py models on Snowpark #3164

jtcohen6 opened this issue Apr 10, 2023 · 0 comments
Assignees
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core improvement Use this when an area of the docs needs improvement as it's currently unclear

Comments

@jtcohen6
Copy link
Collaborator

Contributions

  • I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates

https://docs.getdbt.com/docs/build/python-models#specific-data-platforms

What part(s) of the page would you like to see updated?

Thanks to dbt-labs/dbt-snowflake#334, we can remove this entire section:

About "sprocs": dbt submits Python models to run as stored procedures, which some people call sprocs for short. By default, dbt will create a named sproc containing your model's compiled Python code, and then call it to execute. Snowpark has an Open Preview feature for temporary or anonymous stored procedures (docs), which are faster and leave a cleaner query history. You can switch this feature on for your models by configuring use_anonymous_sproc: True. We plan to switch this on for all dbt + Snowpark Python models starting with the release of dbt Core version 1.4.

We also need to add docs about imports (added in dbt-labs/dbt-snowflake#263). See Slack message for example use case. User can configure like so:

def model(dbt, session):
    dbt.config(
        materialized = "table",
        packages = ["numpy", "pandas", "word2number"],
        imports = ('@packages/word2number.zip' ),
        tags=['daily']
    )

Additional information

No response

@jtcohen6 jtcohen6 added content Improvements or additions to content improvement Use this when an area of the docs needs improvement as it's currently unclear labels Apr 10, 2023
@runleonarun runleonarun added the dbt Core The changes proposed in this issue relate to dbt Core label Aug 17, 2023
@runleonarun runleonarun added this to the dbt Core Documentation milestone Feb 29, 2024
@matthewshaver matthewshaver self-assigned this Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core improvement Use this when an area of the docs needs improvement as it's currently unclear
Projects
None yet
Development

No branches or pull requests

3 participants