pub struct ColumnMeta {
pub name: String,
pub ty: String,
pub scale: i64,
}Expand description
One entry in resultSetMetaData.rowType. Only the fields we actually use
are deserialised; everything else is ignored.
Fields§
§name: StringColumn name as Snowflake reports it. Typically uppercase for unquoted identifiers; we keep the casing untouched.
ty: StringLow-level Snowflake type — lowercased identifiers like "fixed",
"text", "boolean", "variant", "timestamp_ntz". See the
Snowflake JSON v2 result format
docs.
scale: i64Scale of a fixed (NUMBER/DECIMAL/NUMERIC) column — the number of
digits after the decimal point. Snowflake reports 0 for integer-typed
fixed columns and > 0 for fractional ones. Absent for non-fixed types
(defaults to 0). A non-zero scale means the cell carries a fractional
decimal whose exact value is preserved losslessly as a JSON string,
matching how the BigQuery source treats NUMERIC/BIGNUMERIC.
Trait Implementations§
Source§impl Clone for ColumnMeta
impl Clone for ColumnMeta
Source§fn clone(&self) -> ColumnMeta
fn clone(&self) -> ColumnMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more