[
https://issues.apache.org/jira/browse/AVRO-3179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
MarcelKobain updated AVRO-3179:
-------------------------------
Description:
Hello,
I think we have the same problem as AVRO-2212.
I have classCassException with a bigDecimal.
Context :
I am doing an ETL with postgres >> KafkaConnect >> KafkaStream
I get schemas with mvn schema-registry:download
I generate pojo with : mvn clean avro:schema
Then I launch my app to stream a table source to a table target
I have fixed passing on the 1.10.1 version and it works. But When i take 1.10.2
I have the bug :
Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to
java.nio.ByteBufferCaused by: java.lang.ClassCastException:
java.math.BigDecimal cannot be cast to java.nio.ByteBuffer at
postgres.table.Value.put(Value.java:240) at
org.apache.avro.generic.GenericData.setField(GenericData.java:818) at
org.apache.avro.specific.SpecificDatumReader.readField(SpecificDatumReader.java:139)
at
org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:247)
at
org.apache.avro.specific.SpecificDatumReader.readRecord(SpecificDatumReader.java:123)
at
org.apache.avro.generic.GenericDatumReader.readWithoutConversion(GenericDatumReader.java:179)
was:
Hello,
I think we have the same problem as AVRO-2212.
I have classCassException with a bigDecimal.
I have fixed passing on the 1.10.1 version and it works. But When i take 1.10.2
I have the bug.
Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to
java.nio.ByteBufferCaused by: java.lang.ClassCastException:
java.math.BigDecimal cannot be cast to java.nio.ByteBuffer at
postgres.table.Value.put(Value.java:240) at
org.apache.avro.generic.GenericData.setField(GenericData.java:818) at
org.apache.avro.specific.SpecificDatumReader.readField(SpecificDatumReader.java:139)
at
org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:247)
at
org.apache.avro.specific.SpecificDatumReader.readRecord(SpecificDatumReader.java:123)
at
org.apache.avro.generic.GenericDatumReader.readWithoutConversion(GenericDatumReader.java:179)
> ClassCastException: java.math.BigDecimal cannot be cast to java.nio.ByteBuffer
> ------------------------------------------------------------------------------
>
> Key: AVRO-3179
> URL: https://issues.apache.org/jira/browse/AVRO-3179
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.10.2
> Reporter: MarcelKobain
> Priority: Blocker
>
> Hello,
> I think we have the same problem as AVRO-2212.
> I have classCassException with a bigDecimal.
>
> Context :
> I am doing an ETL with postgres >> KafkaConnect >> KafkaStream
> I get schemas with mvn schema-registry:download
> I generate pojo with : mvn clean avro:schema
> Then I launch my app to stream a table source to a table target
>
> I have fixed passing on the 1.10.1 version and it works. But When i take
> 1.10.2 I have the bug :
> Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast
> to java.nio.ByteBufferCaused by: java.lang.ClassCastException:
> java.math.BigDecimal cannot be cast to java.nio.ByteBuffer at
> postgres.table.Value.put(Value.java:240) at
> org.apache.avro.generic.GenericData.setField(GenericData.java:818) at
> org.apache.avro.specific.SpecificDatumReader.readField(SpecificDatumReader.java:139)
> at
> org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:247)
> at
> org.apache.avro.specific.SpecificDatumReader.readRecord(SpecificDatumReader.java:123)
> at
> org.apache.avro.generic.GenericDatumReader.readWithoutConversion(GenericDatumReader.java:179)
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)