Skip to content

What should I do with flink Dynamic Iceberg sink about schema evolution #14516

@zncleon

Description

@zncleon

Query engine

flink

Question

I think flink dynamic iceberg sink support schema evolution. But it need DynamicRecord with Schema. What format of Schema should I provide?

e.g.

{
    "schema-id": 1,
    "fields": [
      {"id": 1, "name": "user_id", "type": "long"},
      {"id": 2, "name": "name", "type": "string"}
    ]
  }
  {
    "schema-id": 2,
    "fields": [
      {"id": 1, "name": "user_id", "type": "long"},
      {"id":2, "name": "email", "type": "string"},
      {"id": 3, "name": "name", "type": "string"}
    ]
  }
  1. should I provide a increment schema-id?
  2. if I want to add a column, should I maintain the previous id sequence. or I can insert a column between previous column
    like above(add a column "email", and not consider the id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    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