mkhludnev opened a new pull request, #27406:
URL: https://github.com/apache/beam/pull/27406
- AvroUtils can't create schema from Beam schema made by JdbcIO.readRows()
for NUMERIC and DECIMAL types.
- reproducer for (#27380)
Results seem really sad. AvroUtils.toAvroSchema() fails on NUMERIC and
DECIMAL (here it pass for INT but I'm gust verifying the test approach).
Failure looks like:
```
java.lang.RuntimeException: Unhandled logical type
beam:logical_type:fixed_decimal:v1
at
org.apache.beam.sdk.extensions.avro.schemas.utils.AvroUtils.getFieldSchema(AvroUtils.java:1095)
at
org.apache.beam.sdk.extensions.avro.schemas.utils.AvroUtils.toAvroField(AvroUtils.java:453)
at
org.apache.beam.sdk.extensions.avro.schemas.utils.AvroUtils.toAvroSchema(AvroUtils.java:498)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]