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:
1da44318c82960a03ba01678f442718c62360226 / Ramin Gharib <[email protected]>
[FLINK-37925][table] Read a VARIANT cast through the accessor for the target 
type

A cast from a VARIANT now behaves like a typed accessor instead of a 
conversion. Every scalar target reads the variant through the matching 
`Variant` accessor, so the stored kind has to equal the target kind and the 
value is never widened, narrowed, or rounded to fit. A mismatch fails `CAST` 
and returns `NULL` for `TRY_CAST`. Letting `Variant` itself enforce the kind 
removes the numeric conversion helpers entirely.

A `DECIMAL` target additionally has to hold the value exactly, so a scale that 
would have to round it is rejected rather than rounded.

A variant that stores a JSON `null` now casts to SQL `NULL` rather than to the 
four-character text `null`, which also stops that text from being 
length-checked against a `CHAR` or `VARCHAR` target.

Error messages take the type name from `LogicalTypeRoot` instead of hardcoded 
strings.

The docs describe the accessor rule, the storage kinds it depends on, and the 
double-cast pattern for reaching another type.

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

With regards,
GitHub Actions via GitBox

Reply via email to