diff --git a/rust/arrow/src/array/array.rs b/rust/arrow/src/array/array.rs index 9c04b1643f1c0..75210a7f4b25d 100644 --- a/rust/arrow/src/array/array.rs +++ b/rust/arrow/src/array/array.rs @@ -1782,7 +1782,7 @@ impl From<(Vec<(Field, ArrayRef)>, Buffer, usize)> for StructArray { } } -/// A dictonary array where each element is a single value indexed by an integer key. +/// A dictionary array where each element is a single value indexed by an integer key. /// This is mostly used to represent strings or a limited set of primitive types as integers, /// for example when doing NLP analysis or representing chromosomes by name. /// diff --git a/rust/arrow/src/datatypes.rs b/rust/arrow/src/datatypes.rs index 03d9dca97f2e4..21ecacb612d26 100644 --- a/rust/arrow/src/datatypes.rs +++ b/rust/arrow/src/datatypes.rs @@ -122,6 +122,8 @@ pub enum DataType { FixedSizeList(Box, i32), /// A nested datatype that contains a number of sub-fields. Struct(Vec), + /// A dictionary array where each element is a single value indexed by an integer key. + /// This is mostly used to represent strings or a limited set of primitive types as integers. Dictionary(Box, Box), }