This repository was archived by the owner on Dec 14, 2022. It is now read-only.
This repository was archived by the owner on Dec 14, 2022. It is now read-only.
[BUG] not match primitive schema of byte array #491
Open
Description
Describe the bug
The class and schema is not match for byte array in PulsarPrimitiveSchema
.
The return type of method decode
is byte[]
, but the class name in PulsarPrimitiveSchema
is Byte[]
, which will cause type conversion exceptions during task execution.
To Reproduce
Create a source like:
FlinkPulsarSource<Byte[]> source = new FlinkPulsarSource<>(
serviceUrl,
adminUrl,
new PulsarPrimitiveSchema<>(Byte[].class),
properties);
then would receive ClassCastException
.