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 generator_operating_date to 860M changelog table #3751

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

e-belfer
Copy link
Member

@e-belfer e-belfer commented Jul 29, 2024

Overview

Closes #3722.

What problem does this address?
Adds generator_operating_date from 860M to EIA 860M changelog table.

What did you change?
Added generator_operating_date to the table schema and made a new alembic migration.

Note that this table has no downstream assets and does not get harvested, so this change will not affect any of the other EIA tables. Whereas elsewhere the generator_operating_date is treated as a static and harvested field, here it will originate from the referent 860M data record. This is consistent with the data in the rest of this table, which originates from 860M data only, and other attributes that are harvested from 860M data and treated as static entities in core EIA tables were already in this table (e.g., latitude and longitude). Thus, this seems like a small and straightforward fix.

Testing

How did you make sure this worked? How can a reviewer verify this?
Generate the table, and make sure the generator_operating_date column is there as expected.

To-do list

Preview Give feedback

@e-belfer e-belfer added the eia860 Anything having to do with EIA Form 860 label Jul 29, 2024
@e-belfer e-belfer requested a review from cmgosnell July 29, 2024 22:36
@e-belfer e-belfer self-assigned this Jul 29, 2024
@zaneselvans zaneselvans added the schema-change Used to label any PR that changes table or column names, what columns appear in a table, etc. label Jul 29, 2024
@e-belfer e-belfer requested review from zaneselvans and removed request for cmgosnell July 29, 2024 22:43
@@ -32,6 +32,7 @@
"energy_source_code_1",
"energy_storage_capacity_mwh",
"fuel_type_code_pudl",
"generator_operating_date",
Copy link
Member

Choose a reason for hiding this comment

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

Given that this is the only change, I'm assuming that the column is present in the dataframe that generates this asset, and it was getting dropped when we enforce the schema?

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly!

@zaneselvans zaneselvans added this pull request to the merge queue Jul 29, 2024
Merged via the queue into main with commit d220ee5 Jul 30, 2024
12 checks passed
@zaneselvans zaneselvans deleted the changelog_genopdate branch July 30, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eia860 Anything having to do with EIA Form 860 schema-change Used to label any PR that changes table or column names, what columns appear in a table, etc.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Include generator_operating_date in the core_eia860m__changelog_generators table
2 participants