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

Head commit for run:
3160edda65d1b4b704314ac55421f0310b14ef67 / Pritam Kumar Mishra 
<[email protected]>
[FLINK-40263][format/avro] Validate enum symbols when serializing CHAR/VARCHAR

FLINK-39053 made RowDataToAvroConverters map a CHAR/VARCHAR column onto an Avro
ENUM field, but it builds the EnumSymbol without checking that the string is one
of the declared symbols. An unexpected value therefore survives the conversion
and blows up further down inside GenericDatumWriter as 'Not an enum', which 
names
neither the column nor the value nor the symbols that would have been accepted.

Validate up front instead:

  - a known symbol is converted as before;
  - an unknown symbol falls back to the enum's declared default if it has one,
    which is what Avro's own schema resolution does when reading such a value;
  - otherwise the conversion fails with a message naming the value, the enum and
    the allowed symbols.

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

With regards,
GitHub Actions via GitBox

Reply via email to