Details
-
Bug
-
Status: Triage Needed
-
P2
-
Resolution: Fixed
-
None
-
None
Description
`AvroUtils.toAvroSchema()` and `AvroUtils.toGenericRecord()` throw exception for JDBC specific logical types like: `DATE`, `NVARCHAR`, `VARCHAR`, `LONGVARCHAR` etc.
pipeline
.apply(JdbcIO.readRows()...)
.apply(MapElements.via(
(Row row) -> {
// This statement throws Exception "Unhandled Logical Type"
org.apache.avro.Schema schema = AvroUtils.toAvroSchema(row.getSchema());
}));
This can be handled by adding additional case-statements in AvroUtils:
Attachments
Issue Links
- links to