pub enum NullHandling {
Drop,
Preserve,
PreserveAndExpandEmpty,
}Expand description
How UnnestOptions handles NULL and empty list values in the input column.
The variants enumerate the three observable behaviors so that callers do not have to compose multiple boolean flags to express what they want.
Variants§
Drop
Drop rows where the input list is NULL or empty. Matches the
default behavior of systems such as DuckDB and ClickHouse.
Preserve
Preserve NULL input rows as a single output row containing NULL.
Empty lists still produce zero output rows. This is the default and
matches DataFusion’s historical preserve_nulls = true behavior.
PreserveAndExpandEmpty
Like Self::Preserve, and additionally treat an empty list
identically to a NULL list, producing a single output row
containing NULL.
Trait Implementations§
Source§impl Clone for NullHandling
impl Clone for NullHandling
Source§fn clone(&self) -> NullHandling
fn clone(&self) -> NullHandling
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 moreimpl Copy for NullHandling
Source§impl Debug for NullHandling
impl Debug for NullHandling
Source§impl Default for NullHandling
impl Default for NullHandling
Source§fn default() -> NullHandling
fn default() -> NullHandling
Returns the “default value” for a type. Read more
impl Eq for NullHandling
Source§impl Hash for NullHandling
impl Hash for NullHandling
Source§impl PartialEq for NullHandling
impl PartialEq for NullHandling
Source§impl PartialOrd for NullHandling
impl PartialOrd for NullHandling
impl StructuralPartialEq for NullHandling
Auto Trait Implementations§
impl Freeze for NullHandling
impl RefUnwindSafe for NullHandling
impl Send for NullHandling
impl Sync for NullHandling
impl Unpin for NullHandling
impl UnsafeUnpin for NullHandling
impl UnwindSafe for NullHandling
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.