pub type PbDataType = DataType;Aliased Type§
pub struct PbDataType {
pub type_name: i32,
pub precision: u32,
pub scale: u32,
pub is_nullable: bool,
pub interval_type: i32,
pub field_type: Vec<DataType>,
pub field_names: Vec<String>,
pub field_ids: Vec<i32>,
}Fields§
§type_name: i32§precision: u32Data length for vector. Max data length for varchar. Precision for time, decimal.
scale: u32Scale for decimal.
is_nullable: bool§interval_type: i32§field_type: Vec<DataType>For struct type, it represents all the fields in the struct.
For list type it only contains 1 element which is the inner item type of the List.
For example, ARRAY<INTEGER> will be represented as vec!\[DataType::Int32\].
field_names: Vec<String>Name of the fields if it is a struct type. For other types it will be empty.
field_ids: Vec<i32>Id of the fields if it is a struct type. Used in serialization for nested-schema evolution purposes.
Empty if either:
- it is not a struct type
- it is not within a table schema (
ColumnDesc) - it was persisted in an old version.