dmgcodevil opened a new issue #3025:
URL: https://github.com/apache/iceberg/issues/3025
Why Iceberg overrides schema fields ids for nested structs. For example in
my schema struct field 'LAST_TRADE_PRICE' has id 53, however in metadata json
it's "id" : 49
Shema:
```java
Types.NestedField.optional(53, LAST_TRADE_PRICE, Types.StructType.of(
Types.NestedField.required(54, PRICE,
Types.DoubleType.get()),
Types.NestedField.required(55, YIELD,
Types.DoubleType.get()),
Types.NestedField.required(56, DISCOUNT,
Types.DoubleType.get()),
Types.NestedField.required(57, SCORE,
Types.IntegerType.get())
)),
``
metadata json:
```json
"id" : 49,
"name" : "last_trade_price",
"required" : false,
"type" : {
"type" : "struct",
"fields" : [ {
"id" : 56,
"name" : "price",
"required" : true,
"type" : "double"
}, {
"id" : 57,
"name" : "yield",
"required" : true,
"type" : "double"
}, {
"id" : 58,
"name" : "discount",
"required" : true,
"type" : "double"
}, {
"id" : 59,
"name" : "score",
"required" : true,
"type" : "int"
} ]
}
}
```
Is it possible to preserve original ids ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]