pub struct ColumnDefault<'a> { /* private fields */ }Available on crate feature
column-defaults-in-dev only.Expand description
A column-level default parsed from the CURRENT_DEFAULT metadata key of a
StructField.
Holds the raw SQL and the column’s declared type. On construction the kernel parses the SQL
with its built-in parser and caches the result. to_scalar returns the
parsed Scalar, or None when the kernel could not parse the SQL (e.g.
current_timestamp()), in which case a connector can evaluate raw_sql
itself.
The declared type is borrowed from the logical schema, which outlives the carrier.
Implementations§
Source§impl<'a> ColumnDefault<'a>
impl<'a> ColumnDefault<'a>
Sourcepub fn to_scalar(&self) -> DeltaResult<Option<Scalar>>
pub fn to_scalar(&self) -> DeltaResult<Option<Scalar>>
Trait Implementations§
Source§impl<'a> Clone for ColumnDefault<'a>
impl<'a> Clone for ColumnDefault<'a>
Source§fn clone(&self) -> ColumnDefault<'a>
fn clone(&self) -> ColumnDefault<'a>
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<'a> Debug for ColumnDefault<'a>
impl<'a> Debug for ColumnDefault<'a>
Source§impl<'a> PartialEq for ColumnDefault<'a>
impl<'a> PartialEq for ColumnDefault<'a>
impl<'a> StructuralPartialEq for ColumnDefault<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ColumnDefault<'a>
impl<'a> !UnwindSafe for ColumnDefault<'a>
impl<'a> Freeze for ColumnDefault<'a>
impl<'a> Send for ColumnDefault<'a>
impl<'a> Sync for ColumnDefault<'a>
impl<'a> Unpin for ColumnDefault<'a>
impl<'a> UnsafeUnpin for ColumnDefault<'a>
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
Obtains a
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ
Obtains an
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
Converts the object to
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Convenient wrapper for
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DynPartialEq for T
impl<T> DynPartialEq for T
Source§impl<T> FoldWithOption for T
impl<T> FoldWithOption for T
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelTypewhere
ArrowType: TryFromKernel<KernelType>,
impl<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelTypewhere
ArrowType: TryFromKernel<KernelType>,
Source§fn try_into_arrow(self) -> Result<ArrowType, ArrowError>
fn try_into_arrow(self) -> Result<ArrowType, ArrowError>
Available on crate feature
arrow-conversion and (crate features arrow-conversion or declarative-plans or default-engine-base) only.Source§impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowTypewhere
KernelType: TryFromArrow<ArrowType>,
impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowTypewhere
KernelType: TryFromArrow<ArrowType>,
Source§fn try_into_kernel(self) -> Result<KernelType, ArrowError>
fn try_into_kernel(self) -> Result<KernelType, ArrowError>
Available on crate feature
arrow-conversion and (crate features arrow-conversion or declarative-plans or default-engine-base) only.