apache / iceberg

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

How to convert STRING fields to STRUCT? #11512

Open madeirak opened 1 week ago

madeirak commented 1 week ago

Query engine

spark

Question

What is the recommended way to convert fields stored JSON STRING into more flexible STRUCT format.

The idea solution is to rename the old field, create a new field, and then ETL the old data within the table, Is there a better way?