Skip to content

[Data][Flaky] Parquet tests fail with Arrow nightly builds - "Parquet magic bytes not found" #58564

Description

@bveeramani

Test Modules

  • test_parquet
  • test_file_based_datasource

Issue Description

Tests that read Parquet files intermittently fail with Arrow nightly builds, reporting that the Parquet magic bytes are not found in the footer, suggesting file corruption or that the file is not a valid Parquet file.

Root Cause

The exact cause is unclear, but the error occurs during PyArrow's Parquet reading:

pyarrow.lib.ArrowInvalid: Could not open Parquet input source '<Buffer>': Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.

One possible cause is that recent changes in PyArrow's Parquet reader might've introduced a bug.

Example Failure

pyarrow.lib.ArrowInvalid: Could not open Parquet input source '<Buffer>': Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.

File "/opt/miniforge/lib/python3.10/site-packages/pyarrow/parquet/core.py", line 1413, in __init__
  [fragment], schema=schema or fragment.physical_schema,

Proposed Fix

Investigate whether anything related to Parquet reading has changed in PyArrow recently. If this is an issue with Arrow, we should open a ticket and ensure it's fixed upstream.

Additional Context

This is specifically related to Arrow nightly builds.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1Issue that should be fixed within a few weeksbugSomething that is supposed to be working; but isn'tdataRay Data-related issuesgood-first-issueGreat starter issue for someone just starting to contribute to Ray

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions