Skip to content

TableMetadataBuilder::build() rejects a default spec with a void field whose source column was dropped #3555

Open

Description

@xanderbailey

Describe the bug

build() rebinds the default spec with bind(), which requires every source column to exist, including for void fields. Java's build() uses PartitionSpec.checkCompatibility, which skips void fields.

So dropping the source column of a void partition field in the default spec fails in Rust but works in Java. This blocks replace table on v1 tables (#3057), where Java replaces removed partition fields with void.

Expected behavior

build() checks the default spec the way Java's checkCompatibility does.

Willingness to contribute

I can contribute a fix for this bug independently

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions