Struct datafusion::logical_expr::logical_plan::DmlStatement
source · pub struct DmlStatement {
pub table_name: TableReference,
pub table_schema: Arc<DFSchema>,
pub op: WriteOp,
pub input: Arc<LogicalPlan>,
pub output_schema: Arc<DFSchema>,
}
Expand description
The operator that modifies the content of a database (adapted from substrait WriteRel)
Fields§
§table_name: TableReference
The table name
table_schema: Arc<DFSchema>
The schema of the table (must align with Rel input)
op: WriteOp
The type of operation to perform
input: Arc<LogicalPlan>
The relation that determines the tuples to add/remove/modify the schema must match with table_schema
output_schema: Arc<DFSchema>
The schema of the output relation
Implementations§
source§impl DmlStatement
impl DmlStatement
sourcepub fn new(
table_name: TableReference,
table_schema: Arc<DFSchema>,
op: WriteOp,
input: Arc<LogicalPlan>,
) -> DmlStatement
pub fn new( table_name: TableReference, table_schema: Arc<DFSchema>, op: WriteOp, input: Arc<LogicalPlan>, ) -> DmlStatement
Creates a new DML statement with the output schema set to a single count
column.
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Return a descriptive name of this DmlStatement
Trait Implementations§
source§impl Clone for DmlStatement
impl Clone for DmlStatement
source§fn clone(&self) -> DmlStatement
fn clone(&self) -> DmlStatement
Returns a copy of the value. Read more
1.0.0 · 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 DmlStatement
impl Debug for DmlStatement
source§impl Hash for DmlStatement
impl Hash for DmlStatement
source§impl PartialEq for DmlStatement
impl PartialEq for DmlStatement
impl Eq for DmlStatement
impl StructuralPartialEq for DmlStatement
Auto Trait Implementations§
impl Freeze for DmlStatement
impl !RefUnwindSafe for DmlStatement
impl Send for DmlStatement
impl Sync for DmlStatement
impl Unpin for DmlStatement
impl !UnwindSafe for DmlStatement
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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