Skip to content

Commit

Permalink
Make pudl models assets parquet only
Browse files Browse the repository at this point in the history
  • Loading branch information
zschira committed Jan 27, 2025
1 parent f200fa0 commit ce7b8b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pudl/analysis/pudl_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def pudl_models_asset_factory(table_name: str) -> AssetsDefinition:

@asset(
name=table_name,
io_manager_key="pudl_io_manager",
io_manager_key="parquet_io_manager",
group_name="pudl_models",
)
def _asset() -> pd.DataFrame:
return DeltaTable(_get_table_uri(table_name)).to_pandas()
Expand Down
1 change: 1 addition & 0 deletions src/pudl/metadata/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,7 @@ def from_pyarrow_schema(
name=name,
description=description,
schema=Schema.from_pyarrow_schema(schema),
create_database_schema=False,
)

def get_field(self, name: str) -> Field:
Expand Down

0 comments on commit ce7b8b7

Please sign in to comment.