The GitHub Actions job "Flink CI (beta)" on flink.git/master has failed.
Run started by GitHub user AHeise (triggered by AHeise).

Head commit for run:
e785c495e43c5e5b1357c8f829204a3272d1cd70 / Ramin Gharib <[email protected]>
[FLINK-40825][table] Support casting primitive types to VARIANT

CAST and TRY_CAST now convert BOOLEAN, numeric, character string, binary 
string, DATE, TIME, TIMESTAMP, TIMESTAMP_LTZ, and UUID values to VARIANT. 
SqlCastFunction rejected every cast to VARIANT, and now routes a VARIANT target 
to LogicalTypeCasts, which lists the supported sources explicitly. A type 
without a VARIANT kind, such as INTERVAL, is rejected at validation, and the 
cast is explicit only. The value keeps the kind of its SQL type, so an integer 
keeps its width and a string is wrapped rather than parsed. NaN and infinity 
are stored as is, since a VARIANT is not limited to what JSON can express.

A timestamp keeps its declared precision: up to 6 it is stored with 
microseconds and above with nanoseconds. Nanoseconds only cover 1677-09-21 to 
2262-04-11, so such a value outside that range fails the cast. A VARIANT holds 
at most 16 MiB, so a longer string or binary value fails the cast too. The rule 
reports a type as fallible when its precision or declared length allows such a 
value, so TRY_CAST returns NULL for it.

A constructed cast checks each child with the same rules, so a cast such as 
ARRAY<INT> to ARRAY<VARIANT> works element by element. Casting a whole ARRAY, 
MAP, or ROW into one VARIANT follows in FLINK-40826.

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

With regards,
GitHub Actions via GitBox

Reply via email to