Skip to content

Commit

Permalink
Minor: rename variable bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsherin committed Oct 12, 2024
1 parent c6e8235 commit d7ee287
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions datafusion/functions-window/src/lead_lag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,13 @@ mod tests {

#[test]
fn test_lag_with_default() -> Result<()> {
let first = Arc::new(Column::new("c3", 0)) as Arc<dyn PhysicalExpr>;
let second =
let expr = Arc::new(Column::new("c3", 0)) as Arc<dyn PhysicalExpr>;
let shift_offset =
Arc::new(Literal::new(ScalarValue::Int32(Some(1)))) as Arc<dyn PhysicalExpr>;
let third = Arc::new(Literal::new(ScalarValue::Int32(Some(100))))
let default_value = Arc::new(Literal::new(ScalarValue::Int32(Some(100))))
as Arc<dyn PhysicalExpr>;
let input_exprs = &[first, second, third];

let input_exprs = &[expr, shift_offset, default_value];
let input_types: &[DataType] =
&[DataType::Int32, DataType::Int32, DataType::Int32];

Expand Down

0 comments on commit d7ee287

Please sign in to comment.