pub struct ViewDefinitionRow {
pub view_set_name: String,
pub definition_sql: String,
pub extract_query: String,
pub count_src_query: String,
pub merge_partitions_query: String,
pub update_group: i32,
pub view_options: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub updated_by: Option<String>,
}Expand description
One row of lakehouse_view_set_definitions, exactly as read back. view_options is kept as
its raw JSON text here (parsed into a ViewOptions only by ViewDefinitionRow::into_definition)
so a row that fails to parse can still be reported by name rather than losing its identity.
Fields§
§view_set_name: String§definition_sql: String§extract_query: String§count_src_query: String§merge_partitions_query: String§update_group: i32§view_options: String§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§updated_by: Option<String>Implementations§
Source§impl ViewDefinitionRow
impl ViewDefinitionRow
Sourcepub fn into_definition(self) -> Result<ViewDefinition, Error>
pub fn into_definition(self) -> Result<ViewDefinition, Error>
Parses view_options and assembles the normalized ViewDefinition the DDL executor and
registry loader both validate and build a SqlBatchView from.
Trait Implementations§
Source§impl Clone for ViewDefinitionRow
impl Clone for ViewDefinitionRow
Source§fn clone(&self) -> ViewDefinitionRow
fn clone(&self) -> ViewDefinitionRow
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 moreAuto Trait Implementations§
impl Freeze for ViewDefinitionRow
impl RefUnwindSafe for ViewDefinitionRow
impl Send for ViewDefinitionRow
impl Sync for ViewDefinitionRow
impl Unpin for ViewDefinitionRow
impl UnsafeUnpin for ViewDefinitionRow
impl UnwindSafe for ViewDefinitionRow
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].