Skip to content

Commit

Permalink
Support Field ID in ArrowWriter (apache#4702)
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Aug 17, 2023
1 parent f0200db commit 5c76c6a
Showing 2 changed files with 156 additions and 51 deletions.
7 changes: 7 additions & 0 deletions parquet/src/arrow/mod.rs
Original file line number Diff line number Diff line change
@@ -130,6 +130,13 @@ pub use self::schema::{
/// Schema metadata key used to store serialized Arrow IPC schema
pub const ARROW_SCHEMA_META_KEY: &str = "ARROW:schema";

/// The value of this metadata key, if present on [`Field::metadata`], will be used
/// to populate [`BasicTypeInfo::id`]
///
/// [`Field::metadata`]: arrow_schema::Field::metadata
/// [`BasicTypeInfo::id`]: crate::schema::types::BasicTypeInfo::id
pub const PARQUET_FIELD_ID_META_KEY: &str = "PARQUET:field_id";

/// A [`ProjectionMask`] identifies a set of columns within a potentially nested schema to project
///
/// In particular, a [`ProjectionMask`] can be constructed from a list of leaf column indices
Loading

0 comments on commit 5c76c6a

Please sign in to comment.