Skip to content

Commit 6eb932c

Browse files
committed
Separate parquet -> arrow conversion logic (#1655)
Don't treat embedded arrow schema as authoritative (#1663) Fix projection of nested parquet files (#1652) (#1654) Fix schema inference for repeated fields (#1681) Support reading alternative list representations from parquet (#1680) Consistent handling of unsupported arrow types in parquet (#1666)
1 parent e02869a commit 6eb932c

File tree

8 files changed

+1174
-1225
lines changed

8 files changed

+1174
-1225
lines changed

arrow/src/datatypes/datatype.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,16 @@ pub enum IntervalUnit {
181181
MonthDayNano,
182182
}
183183

184+
impl IntervalUnit {
185+
pub fn get_byte_width(&self) -> usize {
186+
match self {
187+
IntervalUnit::YearMonth => 4,
188+
IntervalUnit::DayTime => 8,
189+
IntervalUnit::MonthDayNano => 16,
190+
}
191+
}
192+
}
193+
184194
// Sparse or Dense union layouts
185195
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
186196
pub enum UnionMode {

0 commit comments

Comments
 (0)