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

Sec distribution fix #4031

Merged
merged 3 commits into from
Jan 28, 2025
Merged

Sec distribution fix #4031

merged 3 commits into from
Jan 28, 2025

Conversation

zschira
Copy link
Member

@zschira zschira commented Jan 27, 2025

Overview

This PR fixes the nightly build failure caused by adding sec10k tables. This error occurred because I forgot to commit the database migrations with the new tables. However, after further consideration, I realized that including these sec10k tables in the SQLITE db there will be schema inconsistencies for outside contributors who can't pull the metadata from GCS. Because of this, this PR also updates the PUDL models assets to use only the parquet IO-manager.

@zschira zschira requested a review from katie-lamb January 27, 2025 21:48
@@ -1486,6 +1486,7 @@ def from_pyarrow_schema(
name=name,
description=description,
schema=Schema.from_pyarrow_schema(schema),
create_database_schema=False,
Copy link
Member Author

Choose a reason for hiding this comment

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

Don't include PUDL models tables in sqlite schema

@@ -16,7 +16,7 @@ def get_model_tables() -> list[str]:
"core_sec10k__company_information",
"core_sec10k__exhibit_21_company_ownership",
"core_sec10k__filings",
"out_sec_10k__parents_and_subsidiaries",
"out_sec10k__parents_and_subsidiaries",
Copy link
Member Author

Choose a reason for hiding this comment

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

Make names consistent

Copy link
Member

@katie-lamb katie-lamb left a comment

Choose a reason for hiding this comment

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

Looks good!

@katie-lamb katie-lamb added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit c0eb11d Jan 28, 2025
17 checks passed
@katie-lamb katie-lamb deleted the sec-distribution-fix branch January 28, 2025 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants