The GitHub Actions job "Build documentation" on flink.git has failed.
Run started by GitHub user zentol (triggered by zentol).

Head commit for run:
4c8995917885e301ca11023fb5e4eb3d0b7a0c7e / Marios Trivyzas <mat...@gmail.com>
[FLINK-26092][table-runtime] Fix `JSON_OBJECTAGG` when emitting `NULL`

Previously, when the Json aggregation is taking place, and id
JsonOnNull.NULL is selected, which means that we still want to emit
a `null` JSON node, .i.e `{.... "myField" : null ... }` when no values
get accumulated, we used a null `StringData` object. When
`state.backend.changelog.enabled` is enabled, the contents of the map
accumulating the aggregated records, gets serialized leading to NPE,
since `null` is not supported by `StringDataSerilizer`.

To solve this, we instead create a StringData with an empty `byte[]`,
which denotes the null, and when the aggregation ends and we create
the final JSON result, we check for a `byte[]` of `length` `0` in
order to write the JSON `null` node.

Report URL: https://github.com/apache/flink/actions/runs/2061770047

With regards,
GitHub Actions via GitBox

Reply via email to