You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@flink.apache.org by GitBox <gi...@apache.org> on 2026/08/05 06:23:41 UTC

[GH] (flink/FLINK-37925-followup): Workflow run "Docs 404 check (beta)" is working again!

The GitHub Actions job "Docs 404 check (beta)" on flink.git/FLINK-37925-followup has succeeded.
Run started by GitHub user raminqaf (triggered by snuyanzin).

Head commit for run:
c110934c717316159d91ec0493cfe5887f6e77fc / Ramin Gharib <ra...@gmail.com>
[FLINK-37925][table] Render a VARIANT as JSON when printing a result

Result display builds a cast to `STRING` for every column, so restricting the VARIANT cast to scalar values also made a variant holding an object or an array undisplayable. `SELECT PARSE_JSON('[1,"two",false,null]')` failed in `TableResult#print`, in the SQL client, and in the SQL gateway, which covers the main use case of the type.

Render every variant as JSON when the cast context is printing. `CastRule.Context` already carries that flag and `BinaryToStringCastRule` already branches on it, so a display path keeps working while `CAST` stays strict. This restores what a result looked like before the cast rules were defined, including a stored string printing quoted.

Handling this in the cast rule rather than in `RowDataToStringConverterImpl` also covers a variant nested in an `ARRAY`, `MAP`, or `ROW` column, because the printing flag propagates to the child rules that render the elements.

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

With regards,
GitHub Actions via GitBox