Skip to content

Commit

Permalink
Support Field ID in ArrowWriter (#4702) (#4710)
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold authored Aug 17, 2023
1 parent a19ff2b commit b810e8f
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Down
Loading

0 comments on commit b810e8f

Please sign in to comment.