pub type PbDataType = DataType;
Expand description
Alias for DataType
.
Aliased Type§
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>,
}
Fields§
§type_name: i32
§precision: u32
Data length for char. Max data length for varchar. Precision for time, decimal.
scale: u32
Scale 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.