Skip to content

Commit

Permalink
update to polars 1
Browse files Browse the repository at this point in the history
  • Loading branch information
aersam committed Jun 17, 2024
1 parent a28b3e5 commit 2c105fa
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 94 deletions.
2 changes: 1 addition & 1 deletion deltalake2db/polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def scan_delta_union(
base_ds = pl.scan_parquet(
fullpath, storage_options=delta_table._storage_options
)
parquet_schema = base_ds.limit(0).schema
parquet_schema = base_ds.limit(0).collect_schema()
selects = []
for field in all_fields:
pl_dtype = _get_type(field.type)
Expand Down
Loading

0 comments on commit 2c105fa

Please sign in to comment.