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

Head commit for run:
488f31fe5268eba7123cac20378a863c2176009c / Ramin Gharib <[email protected]>
[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/30891391012

With regards,
GitHub Actions via GitBox

Reply via email to