Skip to content

Commit

Permalink
change map field default names to follow the parquet format spec
Browse files Browse the repository at this point in the history
  • Loading branch information
longwancheng committed Nov 29, 2024
1 parent c8fda9a commit c253f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions arrow-array/src/builder/map_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ pub struct MapFieldNames {
impl Default for MapFieldNames {
fn default() -> Self {
Self {
entry: "entries".to_string(),
key: "keys".to_string(),
value: "values".to_string(),
entry: "key_value".to_string(),
key: "key".to_string(),
value: "value".to_string(),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion arrow-schema/src/datatype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ pub enum DataType {
///
/// In a field with Map type, the field has a child Struct field, which then
/// has two children: key type and the second the value type. The names of the
/// child fields may be respectively "entries", "key", and "value", but this is
/// child fields may be respectively "key_value", "key", and "value", but this is
/// not enforced.
Map(FieldRef, bool),
/// A run-end encoding (REE) is a variation of run-length encoding (RLE). These
Expand Down

0 comments on commit c253f85

Please sign in to comment.