Skip to content

Commit

Permalink
fall back to Spark if range offset is not int or long
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxingao committed Sep 18, 2024
1 parent 423bcc3 commit 63822c1
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,7 @@ object QueryPlanSerde extends Logging with ShimQueryPlanSerde with CometExprShim
val offset = e.eval() match {
case i: Integer => i.toLong
case l: Long => l
case _ =>
throw new IllegalArgumentException(
"Unsupported data type for window function row/range offset")
case _ => return None
}
OperatorOuterClass.LowerWindowFrameBound
.newBuilder()
Expand All @@ -312,9 +310,7 @@ object QueryPlanSerde extends Logging with ShimQueryPlanSerde with CometExprShim
val offset = e.eval() match {
case i: Integer => i.toLong
case l: Long => l
case _ =>
throw new IllegalArgumentException(
"Unsupported data type for window function row/range offset")
case _ => return None
}

OperatorOuterClass.UpperWindowFrameBound
Expand Down

0 comments on commit 63822c1

Please sign in to comment.