Skip to content

test(encoding): concatenate struct test data with arrow's concat again - #10807

Merged
Xuanwo merged 2 commits into
lance-format:mainfrom
slachiewicz:agent/encoding-test-struct-concat
Nov 14, 2026
Merged

Xuanwo merged 2 commits into
lance-format:mainfrom
slachiewicz:agent/encoding-test-struct-concat

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

The round-trip test helper in rust/lance-encoding/src/testing.rs copies struct arrays through MutableArrayData instead of calling arrow_select::concat. The workaround was added for an arrow-rs check in concat_struct (#4598), with a TODO to remove it once Lance reached arrow 56; this drops the special case and its now-unused imports. Test-only; no library change. Replaces #9643, part of #9647.

Verified: cargo test -p lance-encoding --lib -- struct on ubuntu-24.04 → 1039 passed, cargo fmt -p lance-encoding -- --check clean (run).

Re-verified after merging main at e72e5714: cargo test --profile ci -p lance-encoding --lib --locked -- struct → 961 passed, cargo fmt --all clean, cargo clippy --profile ci --locked --all --tests --benches -- -D warnings clean.

The round-trip test helper copied struct arrays through MutableArrayData
instead of calling concat, working around an arrow-rs check in
concat_struct that the TODO tied to arrow 56 (see lance-format#4598). Lance is on
arrow 59, where concat handles these arrays, so drop the workaround.

@claude claude Bot 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.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added A-encoding Encoding, IO, file reader/writer chore labels Nov 6, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 6, 2026
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 14, 2026

@lance-gatekeeper lance-gatekeeper Bot 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.

✅ Gate recommendation: approve.

Arrow 59.3.2 handles empty-struct lengths and validity, so the workaround from #4598 can be removed. Struct round-trip coverage passed again after merging main, including empty, nullable, nested, and sliced arrays.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 14, 2026

@Xuanwo Xuanwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Test-only helper cleanup: drops the obsolete struct-only concat workaround and its dead imports. Verified against main 80bc45a (single-hunk delta, no production codec/API/format change) with all head checks completed successfully.

@Xuanwo
Xuanwo merged commit 06e68a5 into lance-format:main Nov 14, 2026
44 checks passed
@slachiewicz
slachiewicz deleted the agent/encoding-test-struct-concat branch November 15, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-encoding Encoding, IO, file reader/writer chore K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants