pub struct AddColumnRequest {
pub name: String,
pub iceberg_type: String,
pub required: bool,
pub initial_default: Option<Value>,
pub write_default: Option<Value>,
pub doc: Option<String>,
}Expand description
Request to add a new column to the table schema.
§Iceberg types
Common type strings: "int", "long", "float", "double",
"boolean", "string", "date", "timestamp", "timestamptz", "binary".
Complex types ("list<int>", "map<string,long>", "struct<…>") are stored
verbatim; SchemaFiller maps them to Utf8 when injecting defaults.
Fields§
§name: String§iceberg_type: StringIceberg type string — see struct-level doc for accepted values.
required: boolfalse (nullable) is the safe default for additions so old files never error.
initial_default: Option<Value>Value returned when reading records from files written before this column existed.
None → readers inject null for those rows.
write_default: Option<Value>Value written to new records when no explicit value is supplied.
Defaults to initial_default when omitted.
doc: Option<String>Human-readable field documentation stored in the schema JSON.
Auto Trait Implementations§
impl Freeze for AddColumnRequest
impl RefUnwindSafe for AddColumnRequest
impl Send for AddColumnRequest
impl Sync for AddColumnRequest
impl Unpin for AddColumnRequest
impl UnsafeUnpin for AddColumnRequest
impl UnwindSafe for AddColumnRequest
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more