Skip to content

Commit

Permalink
[SPARK-47767][SQL] Show offset value in TakeOrderedAndProjectExec apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
guihuawen committed Apr 15, 2024
1 parent 6bcadcd commit 8cc9052
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ case class TakeOrderedAndProjectExec(
val orderByString = truncatedString(sortOrder, "[", ",", "]", maxFields)
val outputString = truncatedString(output, "[", ",", "]", maxFields)

s"TakeOrderedAndProject(limit=$limit, offset=$offset, " +
val offsetStr = if (offset > 0) { s" offset=$offset, " } else { "" }
s"TakeOrderedAndProject(limit=$limit, $offsetStr" +
s"orderBy=$orderByString, output=$outputString)"
}

Expand Down

0 comments on commit 8cc9052

Please sign in to comment.