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

Error Reading Page Index When Not Available #2434

Closed
tustvold opened this issue Aug 12, 2022 · 0 comments · Fixed by #2526
Closed

Error Reading Page Index When Not Available #2434

tustvold opened this issue Aug 12, 2022 · 0 comments · Fixed by #2526
Labels
bug parquet Changes to the parquet crate

Comments

@tustvold
Copy link
Contributor

Describe the bug

The doc comment for read_pages_locations reads

If not the format not available return an empty vector.

I would take this to mean it would return an empty vector if index information is not available, instead it returns

General("underlying Thrift error: end of file")

To Reproduce

Enable ReadOptions::enable_page_index and try to read a parquet file that lacks a PageIndex

Expected behavior

Enabling the page index shouldn't require it to exist

Additional context

@tustvold tustvold added the bug label Aug 12, 2022
thinkharderdev added a commit to coralogix/arrow-rs that referenced this issue Aug 17, 2022
@alamb alamb added the parquet Changes to the parquet crate label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug parquet Changes to the parquet crate
Projects
None yet
2 participants