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

add local dev and update docs for Sling #75

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Conversation

cnolanminich
Copy link
Contributor

the Sling loader was failing in prod, and I wanted to debug it. There must have been an update to Sling between version upgrades because we needed to change the AWS_BUCKET from s3://{bucket_name}/{folder_path} (old) to just {bucket_name}. That was an env var change which is now live, but for me to figure that out I had to get the local version working. This PR adds that local support:

  • updates the extras in setup.py to include dagster-embedded-elt
  • adds a local duckdb target and makes local dev supportable
  • updates the README.md

@cnolanminich cnolanminich requested review from slopp and izzye84 April 9, 2024 20:09
Copy link

github-actions bot commented Apr 9, 2024

Your pull request is automatically being deployed to Dagster Cloud.

Location Status Link Updated
batch_enrichment View in Cloud Apr 09, 2024 at 08:23 PM (UTC)
data-eng-pipeline View in Cloud Apr 09, 2024 at 08:23 PM (UTC)
snowflake_insights View in Cloud Apr 09, 2024 at 08:23 PM (UTC)
basics View in Cloud Apr 09, 2024 at 08:23 PM (UTC)
demo_assets View in Cloud Apr 09, 2024 at 08:23 PM (UTC)

Copy link
Collaborator

@slopp slopp left a comment

Choose a reason for hiding this comment

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

lgtm thanks for getting this all sorted

- you will also need to install the packages in the "sling" extra (e.g. `pip install -e ".[dev,sling]")`)
- You'll need to obtain the credentials for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
- then run `dagster dev` and both `hooli_demo_assets` and `hooli_data_eng` code locations will load
- NOTE: if you are running Sling locally, there is currently an error message if you already have a duckdb database set up the first time you run the Sling integration. You'll need to delete it and have the `location` asset be the the first thing you materialize.
Copy link
Collaborator

@izzye84 izzye84 Apr 10, 2024

Choose a reason for hiding this comment

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

Not to hold up this PR, but did you happen to create a bug for this? I vaguely remember running into it way back when.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean on Sling's repo or here for us? Either way I didn't but can do

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should raise it internally and then we can decide if it should go back to Sling too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done #79

@cnolanminich cnolanminich merged commit 8c9de34 into master Apr 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants