Rich created AVRO-3773:
--------------------------
Summary: [Ruby] Decimal logical type fail to validate default
Key: AVRO-3773
URL: https://issues.apache.org/jira/browse/AVRO-3773
Project: Apache Avro
Issue Type: Bug
Components: ruby
Affects Versions: 1.11.1
Reporter: Rich
*Background*
Following is a valid schema from Schema Registry
{code:java}
{
type: 'record',
name: 'account',
fields: [
{
name: 'balance',
type: [
{ type: 'bytes', logicalType: 'decimal', precision: 9, scale: 2
},
'null'
],
default: '\u00ff'
}
]
} {code}
*Expect*
Ruby SDK can parse it successfully
*Actual*
{code:java}
Avro::SchemaParseError(<Error validating default for balance: at . expected
type bytes, got null>) {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)