Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Mar 20, 2024
1 parent 55fb67f commit 7cecd46
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,19 @@ class VeloxFunctionsValidateSuite extends VeloxWholeStageTransformerSuite {
}
}
}

test("lag/lead window function with negative input offset") {
runQueryAndCompare(
"select lag(l_orderkey, -2) over" +
" (partition by l_suppkey order by l_orderkey) from lineitem ") {
checkOperatorMatch[WindowExecTransformer]
}

runQueryAndCompare(
"select lead(l_orderkey, -2) over" +
" (partition by l_suppkey order by l_orderkey) from lineitem ") {
checkOperatorMatch[WindowExecTransformer]
}
}

}

0 comments on commit 7cecd46

Please sign in to comment.