Struct datafusion_physical_expr::expressions::NthValue
source · pub struct NthValue { /* private fields */ }
Expand description
nth_value expression
Implementations§
source§impl NthValue
impl NthValue
sourcepub fn first(
name: impl Into<String>,
expr: Arc<dyn PhysicalExpr>,
data_type: DataType
) -> Self
pub fn first(
name: impl Into<String>,
expr: Arc<dyn PhysicalExpr>,
data_type: DataType
) -> Self
Create a new FIRST_VALUE window aggregate function
Trait Implementations§
source§impl BuiltInWindowFunctionExpr for NthValue
impl BuiltInWindowFunctionExpr for NthValue
source§fn expressions(&self) -> Vec<Arc<dyn PhysicalExpr>> ⓘ
fn expressions(&self) -> Vec<Arc<dyn PhysicalExpr>> ⓘ
expressions that are passed to the Accumulator.
Single-column aggregations such as
sum
return a single value, others (e.g. cov
) return many. Read moresource§fn name(&self) -> &str
fn name(&self) -> &str
Human readable name such as
"MIN(c2)"
or "RANK()"
. The default
implementation returns placeholder text. Read moresource§fn create_evaluator(&self) -> Result<Box<dyn PartitionEvaluator>>
fn create_evaluator(&self) -> Result<Box<dyn PartitionEvaluator>>
Create built-in window evaluator with a batch