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

Remove tables from settings #2286

Merged
merged 2 commits into from
Feb 7, 2023
Merged

Conversation

zschira
Copy link
Member

@zschira zschira commented Feb 7, 2023

PR Overview

This PR removes tables from the settings models/yaml files, as discussed in #2272.

As @bendnorman mentioned in the PR linked above, it looks like we could use dagster's multi-asset subsetting to allow us to select subsets of tables, but I'm not sure if it's worth the time/energy. Open to other's thoughts on this though. Perhaps it's something we could leave to the future if we have time.

PR Checklist

  • Merge the most recent version of the branch you are merging into (probably dev)
  • Include unit tests for new functions and classes.
  • Do your own explanatory review of the PR to help the reviewer understand what's going on and identify issues preemptively.

Copy link
Member Author

@zschira zschira left a comment

Choose a reason for hiding this comment

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

Mostly just deleting code with this one.

"epacems": {"tables"},
}
)
).datasets.dict()
Copy link
Member Author

Choose a reason for hiding this comment

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

Get rid of those nasty excludes!

@@ -484,7 +484,7 @@ def define_sqlite_db(
Returns:
None: the effects of the function are stored inside sqlite_meta
"""
for table in ferc1_to_sqlite_settings.tables:
for table in DBF_TABLES_FILENAMES.keys():
Copy link
Member Author

Choose a reason for hiding this comment

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

Just use all tables

Copy link
Member

@bendnorman bendnorman left a comment

Choose a reason for hiding this comment

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

Love a PR that deletes code!

We'll have to remember to remove the tables attribute from the FERC 714 settings once it's integrated into the dagster DAG #2266. I could see us eventually removing most of the code in settings.py in favor or using dagster config types for validating years and partitions and using the DAG to specify dataset dependencies.

@zschira zschira merged commit 2d3b8fd into dagster-asset-etl Feb 7, 2023
@zschira
Copy link
Member Author

zschira commented Feb 7, 2023

Same with eia861, I think

@zschira zschira deleted the dagster_remove_tables branch February 7, 2023 20:47
@jdangerx jdangerx added the dagster Issues related to our use of the Dagster orchestrator label Feb 7, 2023
@jdangerx jdangerx added this to the Port ETL to Dagster milestone Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dagster Issues related to our use of the Dagster orchestrator inframundo
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants