The GitHub Actions job "Build" on 
rocketmq-flink.git/fix/string-serializer-temporal-columns has failed.
Run started by GitHub user NUAAwqy (triggered by NUAAwqy).

Head commit for run:
d565bd846d46283804f4976779a02076bf3a58d2 / Qingyuan Wang <[email protected]>
[ISSUE #N/A] fix: decode the DATE, TIME and TIMESTAMP columns of a row source

A table whose schema contains a temporal column delivers no row at all.

`ByteSerializer.getTypeIndex` maps the conversion class of such a field to
`V_LocalDate`, `V_LocalTime` and `V_LocalDateTime` — a `DATE`, `TIME` or
`TIMESTAMP` column is reported as `java.time.LocalDate`, `java.time.LocalTime`
or `java.time.LocalDateTime` — but the switch in `StringSerializer.deserialize`
had no case for any of them. Each value therefore fell into the final
`default: throw new IllegalArgumentException()`. `RowDeserializationSchema`
handles a per-field exception with the configured dirty data strategy, which
defaults to `SKIP`, so the row was dropped and the job kept running on an
empty stream.

Decode the three types in their internal representation: a `DATE` as the days
since epoch, a `TIME` as the milliseconds of the day, and a `TIMESTAMP` as
`TimestampData`. A value that cannot be parsed still throws, so a malformed
field keeps going through the dirty data strategy instead of producing a row
of garbage. The interval and `TIMESTAMP_LTZ` types are left untouched.

Report URL: https://github.com/apache/rocketmq-flink/actions/runs/40695782069

With regards,
GitHub Actions via GitBox

Reply via email to