You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org> on 2018/12/30 04:10:01 UTC
[jira] [Updated] (AVRO-2029) Specific Data generated class missing
Decimal Conversion
[ https://issues.apache.org/jira/browse/AVRO-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiruvalluvan M. G. updated AVRO-2029:
--------------------------------------
Component/s: java
> Specific Data generated class missing Decimal Conversion
> --------------------------------------------------------
>
> Key: AVRO-2029
> URL: https://issues.apache.org/jira/browse/AVRO-2029
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.8.2
> Reporter: Adrian McCague
> Priority: Major
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Using 1.8.2-rc3
> Given a class generated with {{-bigDecimal}}, the generated class defines the DECIMAL_CONVERSION but does not set it to a {{BigDecimal}} field index.
> Fields for illustration:
> {code}
> @Deprecated public java.lang.String id;
> @Deprecated public org.joda.time.DateTime timestamp;
> @Deprecated public java.lang.String applicationId;
> @Deprecated public java.math.BigDecimal amount;;
> ...
> protected static final org.apache.avro.data.TimeConversions.TimestampConversion TIMESTAMP_CONVERSION = new org.apache.avro.data.TimeConversions.TimestampConversion();
> protected static final org.apache.avro.Conversions.DecimalConversion DECIMAL_CONVERSION = new org.apache.avro.Conversions.DecimalConversion();
> private static final org.apache.avro.Conversion<?>[] conversions =
> new org.apache.avro.Conversion<?>[] {
> null,
> TIMESTAMP_CONVERSION,
> null,
> null, // Should be DECIMAL_CONVERSION
> null,
> null,
> null,
> null,
> null
> };
> {code}
> I am currently unsure of the impact of this.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)