Skip to content

Commit

Permalink
Separate parquet -> arrow conversion logic (apache#1655)
Browse files Browse the repository at this point in the history
Don't treat embedded arrow schema as authoritative (apache#1663)

Fix projection of nested parquet files (apache#1652) (apache#1654)

Fix schema inference for repeated fields (apache#1681)

Support reading alternative list representations from parquet (apache#1680)

Consistent handling of unsupported arrow types in parquet (apache#1666)
  • Loading branch information
tustvold committed May 9, 2022
1 parent e02869a commit 6eb932c
Show file tree
Hide file tree
Showing 8 changed files with 1,174 additions and 1,225 deletions.
10 changes: 10 additions & 0 deletions arrow/src/datatypes/datatype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,16 @@ pub enum IntervalUnit {
MonthDayNano,
}

impl IntervalUnit {
pub fn get_byte_width(&self) -> usize {
match self {
IntervalUnit::YearMonth => 4,
IntervalUnit::DayTime => 8,
IntervalUnit::MonthDayNano => 16,
}
}
}

// Sparse or Dense union layouts
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub enum UnionMode {
Expand Down
Loading

0 comments on commit 6eb932c

Please sign in to comment.