Skip to content

error message for failed table creation due to null columns is misleading #2539

@blackhat-hemsworth

Description

@blackhat-hemsworth

Apache Iceberg version

0.10.0 (latest release)

Please describe the bug 🐞

I am assuming the catalog is on V2 since the null type doesn't get converted to unknown. I am not sure how to check, but it's in s3tables

# reprex-ish
import pyarrow as pa
# catalog = load_catalog(name="muck")
example_schema = pa.schema(
    [
        pa.field("int64", pa.int64()),
        pa.field("n1", pa.null()),
    ]
)
tbl = catalog.create_table("muck_ns.abc", schema=example_schema)

error log incorrectly blames "type string" :

BadRequestError: InvalidInputException: Invalid input:Cannot parse type string to primitive: unknown (through reference chain: org.apache.iceberg.rest.requests.CreateTableRequest["schema"])

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time

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