[ 
https://issues.apache.org/jira/browse/AVRO-3899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17783616#comment-17783616
 ] 

ASF subversion and git services commented on AVRO-3899:
-------------------------------------------------------

Commit da98719ad84bad1ef71c17779ba6b3c482d84b2c in avro's branch 
refs/heads/main from Martin Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=da98719ad ]

AVRO-3899: [Rust] Invalid logical types should be ignored and treatedas the 
underlying type (#2580)

* AVRO-3899: [Rust] Invalid logical types should be ignored and treated as the 
underlying type

Log a warning for invalid logical (decimal) schema and use the
underlying (base) schema

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* AVRO-3899: [Rust] Add a new unit test for parsing decimal schema

Assert that a log message is logged for invalid schema.
Assert that the same log message is not logged for a valid decimal
schema.

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

> [Rust] Invalid logical types should be ignored and treated as the underlying 
> type
> ---------------------------------------------------------------------------------
>
>                 Key: AVRO-3899
>                 URL: https://issues.apache.org/jira/browse/AVRO-3899
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: rust
>    Affects Versions: 1.11.3
>            Reporter: Martin Tzvetanov Grigorov
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> According to the 
> [spec|https://avro.apache.org/docs/1.11.1/specification/#logical-types]:
> {code:java}
> If a logical type is invalid, for example a decimal with scale greater than 
> its precision, then implementations should ignore the logical type and use 
> the underlying Avro type.{code}
> Currently if a decimal schema has scale bigger than the precision the Avro 
> SDK would return an error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to