I use quarkus-avro to generate Java class from avsc files in src/main/avro, but avro.codegen.enableDecimalLogicalType=true in src/main/resources/application.properties doesn't take effect, my decimal field is still generated as ByteBuffer. avro-maven-plugin doesn't have this problem.
Quarkus 2.1.1.Final
AdaoptOpenJDK 11
Expected behavior
decimal field should be BigDecimal in generated Java file.
Actual behavior
decimal field still uses ByteBuffer.
How to Reproduce?
get an avsc file that contains decimal field
put the avsc file in src/main/avro
add extension quarkus-avro to pom.xml
set avro.codegen.enableDecimalLogicalType=true in src/main/resources/application.properties
mvn clean package
Output of uname -a or ver
Darwin aaa-mbp.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Output of java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
Client Version 2.1.1.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Describe the bug
I use quarkus-avro to generate Java class from avsc files in src/main/avro, but
avro.codegen.enableDecimalLogicalType=true
in src/main/resources/application.properties doesn't take effect, my decimal field is still generated as ByteBuffer.avro-maven-plugin
doesn't have this problem.Expected behavior
decimal field should be BigDecimal in generated Java file.
Actual behavior
decimal field still uses ByteBuffer.
How to Reproduce?
quarkus-avro
to pom.xmlavro.codegen.enableDecimalLogicalType=true
in src/main/resources/application.propertiesOutput of
uname -a
orver
Output of
java -version
GraalVM version (if different from Java)
No response
Quarkus version or git rev
Client Version 2.1.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional information
No response