You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Kriskras99 (via GitHub)" <gi...@apache.org> on 2026/02/07 12:32:12 UTC
[I] Default parsing does not work for boolean [avro-rs]
Kriskras99 opened a new issue, #456:
URL: https://github.com/apache/avro-rs/issues/456
```rust
#[test]
fn avro_rs_xxx_schema_defaults() -> TestResult {
let schema = Schema::parse_str(
r#"{
"type": "record",
"name": "defaults",
"fields": [
{"name": "boolean", "type": "bool", "default": true}
]
}"#)?;
Ok(())
}
```
This fails with:
```
The application panicked (crashed).
apache_avro::error::Error: Error { details: Unknown primitive type: bool }
in avro/src/schema/mod.rs, line 5134
thread: schema::tests::avro_rs_xxx_schema_defaults
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Default parsing does not work for boolean [avro-rs]
Posted by "martin-g (via GitHub)" <gi...@apache.org>.
martin-g commented on issue #456:
URL: https://github.com/apache/avro-rs/issues/456#issuecomment-3883448016
https://avro.apache.org/docs/1.12.0/specification/#primitive-types says: `boolean: a binary value`
https://github.com/apache/avro-rs/blob/60ea1bbece2fcbf5562555404c070039fb014335/avro/src/schema/parser.rs#L129
Solution:
s/bool/boolean/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Default parsing does not work for boolean [avro-rs]
Posted by "Kriskras99 (via GitHub)" <gi...@apache.org>.
Kriskras99 commented on issue #456:
URL: https://github.com/apache/avro-rs/issues/456#issuecomment-3883458771
Whoops😅
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Default parsing does not work for boolean [avro-rs]
Posted by "martin-g (via GitHub)" <gi...@apache.org>.
martin-g closed issue #456: Default parsing does not work for boolean
URL: https://github.com/apache/avro-rs/issues/456
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org