Skip to content

Spark: Fix deprecated PuffinFile.to_vector call in test_read_spark_written_puffin_dv - #3806

Closed
Alwaysgaurav1 wants to merge 1 commit into
apache:mainfrom
Alwaysgaurav1:fix-3803-puffin-dv-deprecation
Closed

Spark: Fix deprecated PuffinFile.to_vector call in test_read_spark_written_puffin_dv#3806
Alwaysgaurav1 wants to merge 1 commit into
apache:mainfrom
Alwaysgaurav1:fix-3803-puffin-dv-deprecation

Conversation

@Alwaysgaurav1

Copy link
Copy Markdown

Description

Fixes #3803.

test_read_spark_written_puffin_dv was invoking deprecated PuffinFile.to_vector(), which raised a DeprecationWarning and caused CI integration test failures under filterwarnings = ["error"].

This PR replaces the deprecated call with deletion_vectors_from_puffin_file(puffin) and calls dv.to_vector() directly on each DeletionVector instance.

…itten_puffin_dv (apache#3803)

Update test_read_spark_written_puffin_dv to use deletion_vectors_from_puffin_file
instead of deprecated PuffinFile.to_vector(), preventing integration test failure
under filterwarnings = ["error"].

Fixes apache#3803.
Copilot AI lite review requested due to automatic review settings August 16, 2026 16:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Spark integration test failure caused by treating DeprecationWarning as an error by removing the deprecated PuffinFile.to_vector() call from the Puffin deletion-vector interop test.

Changes:

  • Replace deprecated puffin.to_vector() usage with deletion_vectors_from_puffin_file(puffin) in the Spark-written Puffin DV integration test.
  • Call dv.to_vector() on each returned DeletionVector instance to obtain the pyarrow.ChunkedArray for assertions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ebyhr

ebyhr commented Aug 17, 2026

Copy link
Copy Markdown
Member

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

Successfully merging this pull request may close these issues.

test_read_spark_written_puffin_dv fails on deprecated PuffinFile.to_vector

3 participants