Skip to content

Commit 13f4c10

Browse files
committed
clean code
1 parent 1261027 commit 13f4c10

File tree

11 files changed

+788
-3214
lines changed

11 files changed

+788
-3214
lines changed

arrow-schema/src/error.rs

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ pub enum ArrowError {
6060
DictionaryKeyOverflowError,
6161
/// Error when the run end index in a REE array is bigger than the array length
6262
RunEndIndexOverflowError,
63+
/// Error during Variant operations in `arrow-variant`.
64+
VariantError(String),
6365
}
6466

6567
impl ArrowError {
@@ -126,6 +128,9 @@ impl Display for ArrowError {
126128
ArrowError::RunEndIndexOverflowError => {
127129
write!(f, "Run end encoded array index overflow error")
128130
}
131+
ArrowError::VariantError(desc) => {
132+
write!(f, "Variant error: {desc}")
133+
}
129134
}
130135
}
131136
}

arrow-variant/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ arrow-data = { workspace = true }
4646
arrow-schema = { workspace = true, features = ["canonical_extension_types"] }
4747
serde = { version = "1.0", default-features = false }
4848
serde_json = { version = "1.0", default-features = false, features = ["std"] }
49+
indexmap = "2.0.0"
4950

5051
[dev-dependencies]
5152
arrow-cast = { workspace = true }

0 commit comments

Comments
 (0)