Skip to content

Commit

Permalink
AVRO-3896: support to custom more logical type (#2569)
Browse files Browse the repository at this point in the history
* AVRO-3896 refactor verify logical type

* AVRO-3896 rename internal function and add test case

* AVRO-3896: [Rust] Improve error handling, comments and tests

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

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: ZENOTME <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
3 people authored Nov 7, 2023
1 parent 3e682e9 commit a6debf7
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 120 deletions.
4 changes: 2 additions & 2 deletions lang/rust/avro/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ pub enum Error {
#[error("No `type` field found for `logicalType`")]
GetLogicalTypeField,

#[error("logicalType must be a string")]
GetLogicalTypeFieldType,
#[error("logicalType must be a string, but is {0:?}")]
GetLogicalTypeFieldType(serde_json::Value),

#[error("Unknown complex type: {0}")]
GetComplexType(serde_json::Value),
Expand Down
Loading

0 comments on commit a6debf7

Please sign in to comment.