MCPcopy Create free account
hub / github.com/apache/datafusion / first_value

Function first_value

datafusion/functions-window/src/nth_value.rs:579–591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

577
578 #[test]
579 fn first_value() -> Result<()> {
580 let expr = Arc::new(Column::new("c3", 0)) as Arc<dyn PhysicalExpr>;
581 test_i32_result(
582 NthValue::first(),
583 PartitionEvaluatorArgs::new(
584 &[expr],
585 &[Field::new("f", DataType::Int32, true).into()],
586 false,
587 false,
588 ),
589 Int32Array::from(vec![1; 8]).iter().collect::<Int32Array>(),
590 )
591 }
592
593 #[test]
594 fn last_value() -> Result<()> {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
test_i32_resultFunction · 0.70
intoMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…