ConeyLiu opened a new issue, #4626:
URL: https://github.com/apache/iceberg/issues/4626
Code to reproduce:
```scala
scala> case class Data(id: Long, name: String)
scala> case class Item(id: Long, data: Data)
scala> spark.sql("create table local.db.test_table(id long, data struct<id:
long, name: string>) using iceberg partitioned by (identity(data.name))").show()
scala> spark.range(5).map(i => Item(i, Data(i,
s"${i}"))).writeTo("local.db.test_table").append()
scala> spark.sql("select data.name from local.db.test_table").show()
+----+
|name|
+----+
|null|
|null|
|null|
|null|
|null|
+----+
```
--
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]