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

[docs] example of copying a CSV file to Snowflake (no pandas) #23636

Closed
wants to merge 1 commit into from

Conversation

cmpadden
Copy link
Contributor

Summary & Motivation

Example use case of copying a CSV into a Snowflake data without the use of pandas.

Part of me wants to break this down into three options:

  • copy without pandas dependency using COPY INTO
  • copy with pandas using df.to_sql
  • copy large CSV with chunksize or partitions

How I Tested These Changes

  • pnpm start

@graphite-app graphite-app bot requested a review from erinkcochran87 August 13, 2024 23:33
@graphite-app graphite-app bot added the area: docs Related to documentation in general label Aug 13, 2024
@cmpadden cmpadden requested review from PedramNavid and erinkcochran87 and removed request for erinkcochran87 August 13, 2024 23:33
Copy link

netlify bot commented Aug 13, 2024

Deploy Preview for dagsterapidocs canceled.

Name Link
🔨 Latest commit 6b2d104
🔍 Latest deploy log https://app.netlify.com/sites/dagsterapidocs/deploys/66bbed31113d0100086fc733


# Loading a CSV File to a Snowflake

Learn to load a CSV file into a Snowflake table using Dagster by making use of the `COPY INTO` query.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to explain the pros/cons of different approaches?

from dagster_snowflake import SnowflakeResource

snowflake = SnowflakeResource(
account=EnvVar("SNOWFLAKE_ACCOUNT"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to explain .env?

Copy link

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-5ewkcbqgm-elementl.vercel.app
https://docs-revamp-usecase-copy-to-snowflake.dagster.dagster-docs.io

Direct link to changed pages:

@cmpadden cmpadden marked this pull request as draft August 14, 2024 00:01
@cmpadden
Copy link
Contributor Author

Moving to use case repository - not docs revamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Related to documentation in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant