Skip to content

test: compare the V2 file insert's closed files as a set - #7335

Merged
mbutrovich merged 1 commit into
apache:mainfrom
andygrove:test/v2-file-insert-close-order
Oct 30, 2026
Merged

mbutrovich merged 1 commit into
apache:mainfrom
andygrove:test/v2-file-insert-close-order

Conversation

@andygrove

@andygrove andygrove commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Which issue does this PR close?

No issue. This is a test-only fix for a flaky assertion that failed CI on #7314.

Rationale for this change

The CometParquetWriterSuite test "an INSERT into a table of the V2 file source is written natively through Hadoop" writes two files from two concurrent tasks. It then asserts that the list of files closed equals the list of files created, in order. When the second task's file closes first, the test fails with the same two paths in swapped order, as it did in the Spark 4.0, JDK 21 [scans] job on #7314.

What changes are included in this PR?

The assertion compares the closed and created files as sets, as the test "complex and temporal types are written through Hadoop" already does for its multi-partition write. The other tests in the suite that compare these lists in order write a single file, so their order cannot vary.

How are these changes tested?

The test itself is the change. It compiles and passes formatting locally, and CI runs the suite.

@github-actions github-actions Bot added enhancement New feature or request test Testing related labels Oct 30, 2026

@mbutrovich mbutrovich 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.

Thanks @andygrove!

@mbutrovich
mbutrovich added this pull request to the merge queue Oct 30, 2026
Merged via the queue into apache:main with commit 36b432c Oct 30, 2026
44 of 45 checks passed
andygrove added a commit to andygrove/datafusion-comet that referenced this pull request Oct 30, 2026
andygrove added a commit that referenced this pull request Oct 30, 2026
…7314)

* fix: [branch-1.2] copy rows retained by identity broadcasts (#7260)

(cherry picked from commit 84944e9)

* test: compare the V2 file insert's closed files as a set (#7335)

(cherry picked from commit 36b432c)

* ci: move the macOS PR build to the macos-15 runner image

GitHub retires the macos-14 runner image on November 2, 2026 and is
already cancelling jobs on it during scheduled brownouts.

(cherry picked from commit 2d168e8)

---------

Co-authored-by: Ping Zhang <pingzh@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request test Testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants