apache / apache/avro-rs

Allow overriding built-in type names

Open
#508 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
130
Forks
62
Avg merge
11h
Merged PRs (30d)
45

Description

As mentioned by @KitFieldhouse in https://github.com/apache/avro-rs/issues/476#issuecomment-4009905613 this test should pass:

```rust
#[test]
fn avro_rs_508_allow_overriding_type_names() -> TestResult {
let schemas = Schema::parse_list([
r#"{
"type": "record",
"name": "fixed",
"fields": [{
"name": "foo",
"type": "string"
}]
}"#,
r#"{
"type": "record",
"name": "Spam",
"fields": [{
"name": "bar",
"type": "fixed"
}]
}"#
])?;

Ok(())
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the provided avro_rs_508_allow_overriding_type_names test and the Schema::parse_list entry point. Trace schema name resolution for the two supplied records, then verify that the test passes with a record named "fixed" referenced as a field type.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.