The GitHub Actions job "Nightly (beta)" on flink.git/release-2.4 has failed.
Run started by GitHub user github-actions[bot] (triggered by 
github-actions[bot]).

Head commit for run:
d545d196f74386e9da8f3dae60fddb46488e6a7f / Ramin Gharib <[email protected]>
[FLINK-41301][table] Throw TableRuntimeException for every failed cast from 
VARIANT

The BOOLEAN reader of FromVariantConverter called Variant#getBoolean, which 
throws a VariantTypeException with the getter's message, such as "Expected type 
BOOLEAN but got STRING". It now checks the kind and throws the unsupportedKind 
TableRuntimeException, like the other readers. The DATE reader already does 
this since FLINK-41281, and the binary readers since FLINK-40319.

A malformed variant, or one with a type this version does not know, still made 
a reader throw a VariantTypeException. FromVariantConverter#convert now wraps 
it in a TableRuntimeException and keeps it as the cause.

A cast to a nullable target first checks for a variant null. That check reads 
the type outside convert and threw the same VariantTypeException. It now calls 
FromVariantConverter#isVariantNull, which wraps it the same way.

The VARIANT_GET part of the master commit is left out, because release-2.4 has 
no VARIANT_GET.

Generated-by: Claude Code 2.1.319 (Claude Opus 5.5)
(cherry picked from commit de2cb88cb0c5a1c076364e02dd03a19b6d890b91)

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

With regards,
GitHub Actions via GitBox

Reply via email to