pub struct TargetColumnSpec {
pub column_name: String,
pub target_type: String,
pub autoload_type: String,
pub status: TargetStatus,
pub note: Option<String>,
pub cast_sql: Option<String>,
}Expand description
One column’s per-target materialization spec (ADR-0014 L4). Uniform across
targets so the type-report table and --json stay stable; an unmappable
column is a status: Fail row, not an error.
Fields§
§column_name: StringName copied through so a Vec<TargetColumnSpec> is self-describing.
target_type: StringNative warehouse type for full fidelity, e.g. “JSON”, “UBIGINT”, “NUMERIC”.
autoload_type: StringType a generic Parquet reader infers without a declared schema. May
differ from target_type (e.g. BigQuery autoloads JSON as “BYTES”).
status: TargetStatus§note: Option<String>§cast_sql: Option<String>Materialization snippet / load-schema hint (L5) to recover the native
type when autoload diverges. None when autoload_type == target_type.
Trait Implementations§
Source§impl Clone for TargetColumnSpec
impl Clone for TargetColumnSpec
Source§fn clone(&self) -> TargetColumnSpec
fn clone(&self) -> TargetColumnSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetColumnSpec
impl Debug for TargetColumnSpec
Auto Trait Implementations§
impl Freeze for TargetColumnSpec
impl RefUnwindSafe for TargetColumnSpec
impl Send for TargetColumnSpec
impl Sync for TargetColumnSpec
impl Unpin for TargetColumnSpec
impl UnsafeUnpin for TargetColumnSpec
impl UnwindSafe for TargetColumnSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more