Skip to content

Commit

Permalink
AVRO-3935: Add support for compatibility check logical types in Rust …
Browse files Browse the repository at this point in the history
…Avro (#2728)

* AVRO-3935: [Rust] add support for logical types in rust avro

* AVRO-3935: [Rust] Extract common logic for checking compatible reader/writer types

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

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: Ralf Grubenmann <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
3 people authored Feb 13, 2024
1 parent 58cad69 commit 0733dd3
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 71 deletions.
2 changes: 1 addition & 1 deletion lang/rust/avro/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ pub enum CompatibilityError {
#[error("Incompatible schema types! The {schema_type} should have been {expected_type:?}")]
TypeExpected {
schema_type: String,
expected_type: &'static [SchemaKind],
expected_type: Vec<SchemaKind>,
},

#[error("Incompatible schemata! Field '{0}' in reader schema does not match the type in the writer schema")]
Expand Down
Loading

0 comments on commit 0733dd3

Please sign in to comment.