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

Head commit for run:
6d2a38e22fd9954753f00e828b55e8360d70d125 / Ramin Gharib <[email protected]>
[FLINK-40580][table] Render a VARIANT object or array as a SQL string when 
casting to a character string

Casting a VARIANT to a character string rendered a stored scalar the way a 
regular SQL cast of that kind would, but an object or array had no scalar form 
and failed with a message pointing to JSON_STRING. This renders an object or 
array the way a regular ARRAY or MAP to string cast does: an array as [e1, e2] 
and an object as {k1=v1, k2=v2}, with each value rendered by the same rules and 
a nested variant null shown as NULL. Strings are unquoted at every depth, so 
the result is a SQL rendering rather than JSON.

The printing path is unchanged and still renders JSON, so a VARIANT result 
column displays as JSON while an explicit CAST AS STRING extracts SQL text, 
matching how a scalar string already differs between the two. A bounded 
CHAR(n)/VARCHAR(n) target trims the rendered string like any other over-length 
value, TRY_CAST returns the same text rather than NULL, and a VARIANT storing a 
JSON null still casts to SQL NULL. Only OBJECT and ARRAY change; other 
unsupported scalar kinds keep failing. Use JSON_STRING for the JSON form with 
quoted strings.

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

With regards,
GitHub Actions via GitBox

Reply via email to