common_primitives/parquet/
numeric.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, PartialEq, Debug, Eq, Serialize, Deserialize)]
5#[serde(rename_all = "UPPERCASE")]
6pub enum ParquetNumericType {
7 Integer(ParquetInteger),
9 Decimal(ParquetDecimal),
11}
12
13#[derive(Clone, PartialEq, Debug, Eq, Serialize, Deserialize)]
15pub struct ParquetInteger {
16 pub bit_width: u8,
18 pub sign: bool,
20}
21
22#[derive(Clone, PartialEq, Debug, Eq, Serialize, Deserialize)]
24pub struct ParquetDecimal {
25 scale: u8,
26
27 precision: u8,
29}