risingwave_pb::plan_common

Type Alias PbColumnDesc

source
pub type PbColumnDesc = ColumnDesc;
Expand description

Alias for ColumnDesc.

Aliased Type§

struct PbColumnDesc {
    pub column_type: Option<DataType>,
    pub column_id: i32,
    pub name: String,
    pub field_descs: Vec<ColumnDesc>,
    pub type_name: String,
    pub description: Option<String>,
    pub additional_column_type: i32,
    pub version: i32,
    pub additional_column: Option<AdditionalColumn>,
    pub generated_or_default_column: Option<GeneratedOrDefaultColumn>,
}

Fields§

§column_type: Option<DataType>§column_id: i32§name: String

we store the column name in column desc now just for debug, but in future we should store it in ColumnCatalog but not here

§field_descs: Vec<ColumnDesc>

For STRUCT type.

§type_name: String

The user-defined type’s name. Empty if the column type is a builtin type. For example, when the type is created from a protobuf schema file, this field will store the message name.

§description: Option<String>

This field is used to store the description set by the comment on clause.

§additional_column_type: i32

deprecated, use AdditionalColumn instead, keep for compatibility with v1.6.x

§version: i32§additional_column: Option<AdditionalColumn>§generated_or_default_column: Option<GeneratedOrDefaultColumn>

Optional description for the generated column or default value.