JackGoldsworth opened a new issue, #7786:
URL: https://github.com/apache/iceberg/issues/7786
### Apache Iceberg version
1.1.0
### Query engine
None
### Please describe the bug 🐞
Say I have the following Schema:
```
new StructType()
.add("value", StringType)
.add("value1", DoubleType)
```
and I perform a `unionByNameWith` with the following struct (after
converting it to an Iceberg Schema using `SparkSchemaUtil`).
```
new StructType()
.add("value", StringType)
.add("value1", DoubleType)
.add("value3", StructType(Seq(
StructField("innerValue1", StringType),
StructField("innerValue2", StringType)
)))
)))
```
After that operation is finished, if I try to perform a `moveFirst` or
`moveAfter` on `innerValue1`, I will get an error saying that the column
`value3.innerValue1` cannot be found.
However, if I print out the resulting schema after the union the column is
clearly there.
--
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]