Repository navigation
fix(dataset): validate nested schema names and stored system columns - #9499
Conversation
Resolve the schema evolution test imports by retaining upstream array types and the repair's record_batch macro.
|
Blocked: the Head: The wheel build passed. The test step reported 1 failure, 1788 passes, and 806 skips. I inspected the live check, annotations, complete job log, and repair diff. The test and Torch training/distance code are identical to current Smallest unblocking action: rerun the failed |
|
Blocked: Head: The test build passed. I inspected the live check, annotations, job log, and relevant source. The AWS provider/test and lockfile are identical to current Smallest next action: rerun the failed job on this same head with a fresh macOS runner to check whether the S3 TLS failure was transient. If it repeats, address the AWS test's external-network dependency separately, using an explicit region and a mock S3 endpoint, then resume this repair with that upstream fix. |
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The merge preserves recursive sibling-name validation and rejection of reserved or empty root names at manifest publication. Nested _rowid remains valid through schema changes and restore, and the new cleanup-aware fragment API still uses the guarded staging path.
|
Blocked: the Head: The Windows wheel build passed. The test step reported 1 failure, 1,844 passes, and 855 skips. I inspected the live check, annotations, complete job log, and repair diff. The failing test, Python indexing code, Torch training/distance code, and workflows are identical to current Smallest unblocking action: rerun the failed |
Summary
Schema::validate()checked duplicate names only at the root, so two children of the same struct could share a name. Selected writers checked reserved system-column names, allowing schema evolution and prewritten-fragment commits to store a top-level field that collides with a virtual column. The Issue also showed that writers accepted an empty top-level name even though field-path parsing cannot address it afterward.Validate sibling names with a per-parent set throughout the schema. At the manifest write boundary,
Schema::validate_writable()rejects all five reserved system names and empty names at the root.add_columnsvalidates its output names before staging data because field-path resolution can run before the manifest check. Nested system names remain writable: virtual columns are injected only at the root, and previously written datasets can still change schema and restore.A schema-changing commit rejects an existing top-level reserved or empty name. Datasets already written with an empty root name still need to be rewritten from their accessible columns.
Related draft #7854 covers newly introduced top-level reserved names; this repair also covers duplicate nested sibling names and the distributed commit path.
Validation
cargo test -p lance-core --lib validate_writablecargo test -p lance-core --doc validate_writablecargo test -p lance --lib rejects_unwritable_top_level_column_namescargo test -p lance --lib test_append_columns_exprscargo test -p lance --lib test_rename_columnscargo fmt --allcargo clippy --all --tests --benches -- -D warningsFixes #9455