apache / iceberg

Apache Iceberg
https://iceberg.apache.org/
Apache License 2.0
6.5k stars 2.25k forks source link

Why Iceberg do not support column with default value? #8527

Open GoGoWen opened 1 year ago

GoGoWen commented 1 year ago

Query engine

why Iceberg do not support column with default value? like mysql "k1 INT DEFAULT '1'"?

Question

why Iceberg do not support column with default value? like mysql "k1 INT DEFAULT '1'"?

Fokko commented 1 year ago

This is actually in the works: https://iceberg.apache.org/spec/#default-values This will be part of Spec version 3 that's being finalized.

Pilipets commented 7 months ago

Are there any examples for Iceberg defaults with V3 for spark-sql or Java SDK? The description makes sense, but not sure what's the format or how to set initial-default from the given link.

Grep for the repo didn't show anything.

wmoustafa commented 5 months ago

PR here https://github.com/apache/iceberg/pull/9502.