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

small batches with no results make parquets not loadable via glob #6

Open
banteg opened this issue Aug 5, 2023 · 0 comments
Open

Comments

@banteg
Copy link

banteg commented Aug 5, 2023

how to replicate

pdp collect ethereum_contracts -b 16800000:16800100:10 -s -f parquet
import polars as pl
df = pl.scan_parquet('*.parquet')
# ComputeError: error while reading ethereum_contracts__v1_1_0__16800030_to_16800039.parquet: External format error: File out of specification: Repetition level must be defined for a primitive type

df = pl.scan_parquet('ethereum_contracts__v1_1_0__16800030_to_16800039.parquet')
# ArrowErrorException: ExternalFormat("File out of specification: Repetition level must be defined for a primitive type")

it appears that when a batch doesn't produce results, no schema is written to a parquet file, which makes it impossible to load it via glob.

@banteg banteg changed the title small batches with no results make parquets not loadable small batches with no results make parquets not loadable via glob Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant