Skip to content

test(datafusion): cover the factory's one-location check; fix fork branch notes - #54

Merged
krinart merged 1 commit into
spiceai-0.10.1-df-55-patchesfrom
lukim/df55-iceberg-50-review-fixes
Oct 3, 2026
Merged

krinart merged 1 commit into
spiceai-0.10.1-df-55-patchesfrom
lukim/df55-iceberg-50-review-fixes

Conversation

@lukekim

@lukekim lukekim commented Oct 3, 2026

Copy link
Copy Markdown

Review fixes for #50. That PR's head branch, spiceai-0.10.1-df-55-patches, only takes changes through a PR, so they come here.

  • Tests for the one-location check. The DataFusion 55 port (f3b2fde) made IcebergTableProviderFactory::create reject a command with zero or several locations (An iceberg external table takes exactly one metadata file location, got N). Only the one-location success path was tested. This adds test_create_rejects_zero_locations and test_create_rejects_multiple_locations (Copilot on #50).
  • Fork branch notes in Cargo.toml. The [patch.crates-io] notes named spiceai-59-patches and spiceai-55-patches, but the pinned revisions are the heads of spiceai/arrow-rs spiceai-59 (2e2cc330) and spiceai/datafusion spiceai-55 (02550cf9). Neither revision is on the -patches branch. Comment-only change (Copilot on #50).

Test plan

  • cargo test -p iceberg-datafusion --lib table_provider_factory: on a0bd6b0 2 passed, with this change 4 passed; 0 failed.
  • Mutation check: with the check swapped for cmd.locations.first(), the run gives 2 passed; 2 failed. Zero locations reaches Failed to read file : No such file or directory (os error 2), and two locations silently opens the first.
  • cargo fmt --all -- --check, taplo fmt --check and cargo clippy -p iceberg-datafusion --all-targets --all-features -- -D warnings all exit 0.
  • Branch notes, from the GitHub compare API: spiceai-59...2e2cc330 is identical, while spiceai-59-patches...2e2cc330 is diverged (6 ahead, 3 behind). spiceai-55...02550cf9 is identical, while spiceai-55-patches...02550cf9 is diverged (13 ahead, 27 behind).

…anch notes

The DataFusion 55 port rejects CREATE EXTERNAL TABLE commands that carry
zero or several locations, but only the one-location path was tested. Add
a test for each case.

The arrow-rs and DataFusion pins are the heads of spiceai-59 and
spiceai-55, not of the -patches branches the comments named.
Copilot AI balanced review requested due to automatic review settings October 3, 2026 01:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approved

The focused tests accurately cover both invalid location counts, and the comment-only branch corrections match the stated revisions.

Review effort: Balanced
Findings: None

What changed in this PR

Adds regression coverage for DataFusion external-table location validation and corrects fork branch annotations.

Changes:

  • Tests rejection of zero and multiple metadata locations.
  • Corrects Arrow and DataFusion fork branch comments.
File Description
crates/​integrations/​datafusion/​src/​table/​table_provider_factory.rs Adds location-count validation tests.
Cargo.toml Corrects pinned revision branch notes.

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

@krinart
krinart merged commit 6e68876 into spiceai-0.10.1-df-55-patches Oct 3, 2026
21 of 23 checks passed
@krinart
krinart deleted the lukim/df55-iceberg-50-review-fixes branch October 3, 2026 04:17
lukekim added a commit that referenced this pull request Oct 3, 2026
…anch notes (#54)

The DataFusion 55 port rejects CREATE EXTERNAL TABLE commands that carry
zero or several locations, but only the one-location path was tested. Add
a test for each case.

The arrow-rs and DataFusion pins are the heads of spiceai-59 and
spiceai-55, not of the -patches branches the comments named.
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.

3 participants