Skip to content

Get null values for for the nested field partition column #4626

Closed
@ConeyLiu

Description

@ConeyLiu

Code to reproduce:

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|
+----+

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions