Skip to content

Commit

Permalink
Fix fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Dec 5, 2023
1 parent 9d17812 commit 2aa05a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ trait SparkPlanExecApi {
attributeSeq = originalInputAttributes)
.doTransform(args))
// Spark only accepts foldable offset. Converts it to LongType literal.
val offsetExpression = Literal.create(offsetWf.offset.eval(EmptyRow), LongType)
val offsetExpression =
Literal.create(offsetWf.offset.eval(EmptyRow).asInstanceOf[Int].toLong, LongType)
childrenNodeList.add(
ExpressionConverter
.replaceWithExpressionTransformer(
Expand Down

0 comments on commit 2aa05a0

Please sign in to comment.