ITADN

How should values of DuckDB's HUGEINT be cast to an Iceberg type?

#2Closedghalimi 创建于 2023-01-21
question
G
ghalimicommented
[DuckDB](https://duckdb.org/docs/sql/data_types/overview) supports the `HUGEINT` type for signed sixteen-byte integers, but [Apache Iceberg](https://iceberg.apache.org/docs/latest/schemas/) does not. How should values of this type be cast? A pragmatic option would be to use `long` 64-bit signed integers, but this would result in significant loss of information. Assuming this is acceptable, what should be done with values that are out of bounds? Otherwise, which alternative options should be considered? **Link**: [Types](https://github.com/sutoiku/puffin/blob/main/TYPES.md)
关闭于 2023-01-23 3 条评论