mb0518 commented on issue #38621:
URL: https://github.com/apache/beam/issues/38621#issuecomment-4529985239
```java
import org.checkerframework.checker.nullness.qual.Nullable; // TYPE_USE
target
```
## Stack trace
```
java.lang.IllegalArgumentException: Unable to encode element
'FileWriteResult{...keyMetadata=null...}'
with coder 'SchemaCoder<Schema: {...keyMetadata: <BYTES NOT NULL>...}>'
at
org.apache.beam.sdk.coders.Coder.getEncodedElementByteSize(Coder.java:304)
...
at
org.apache.beam.sdk.io.iceberg.WriteGroupedRowsToFiles$WriteGroupedRowsToFilesDoFn.processElement(WriteGroupedRowsToFiles.java:116)
Caused by: java.lang.RuntimeException: Null value set on non-nullable field
Field{name=keyMetadata, description=, type=BYTES NOT NULL, options={{}}}
at
org.apache.beam.sdk.values.RowWithGetters.getValue(RowWithGetters.java:88)
at
org.apache.beam.sdk.coders.RowCoderGenerator$EncodeInstruction.encodeDelegate(RowCoderGenerator.java:435)
...
```
## Related issues
- #33132 — Same class of bug (nullable resolved to NOT NULL) caught in
2.61.0rc1, supposedly fixed but appears to have regressed
- [BEAM-10632](https://issues.apache.org/jira/browse/BEAM-10632) — Original
checkerframework `@Nullable` TYPE_USE detection fix (2.26.0)
- #32795 — Earlier SchemaCoder serialization failure for
`SerializableDataFile`
- -Issue opened: https://github.com/apache/beam/issues/38621
--
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]