Skip to content

Flink: Add column to position bug #16420

@SteveStevenpoor

Description

@SteveStevenpoor

Apache Iceberg version

1.11.0 (latest release)

Query engine

Flink

Please describe the bug 🐞

Problem

Currently if you try to add column to position through Flink engine, column will be added at the end of the table. The Spark engine works correctly for such operation. So we need a fix for Flink.

Fix

Add applyModifyColumnPosition if addColumn.getPosition() != null

Verification

  • Added testAlterTableAddColumnPosition() to TestFlinkCatalogTable

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

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions