pub enum TestAggregate {
CountStar,
ColumnA(Arc<Schema>),
}
Expand description
Describe the type of aggregate being tested
Variants§
Implementations§
source§impl TestAggregate
impl TestAggregate
sourcepub fn new_count_star() -> Self
pub fn new_count_star() -> Self
Create a new COUNT(*) aggregate
sourcepub fn new_count_column(schema: &Arc<Schema>) -> Self
pub fn new_count_column(schema: &Arc<Schema>) -> Self
Create a new COUNT(column) aggregate
sourcepub fn count_expr(&self, schema: &Schema) -> AggregateFunctionExpr
pub fn count_expr(&self, schema: &Schema) -> AggregateFunctionExpr
Return appropriate expr depending if COUNT is for col or table (*)
sourcepub fn column_name(&self) -> &'static str
pub fn column_name(&self) -> &'static str
What name would this aggregate produce in a plan?
sourcepub fn expected_count(&self) -> i64
pub fn expected_count(&self) -> i64
What is the expected count?
Auto Trait Implementations§
impl Freeze for TestAggregate
impl RefUnwindSafe for TestAggregate
impl Send for TestAggregate
impl Sync for TestAggregate
impl Unpin for TestAggregate
impl UnwindSafe for TestAggregate
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> 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