Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
wForget committed Mar 12, 2024
1 parent 057c538 commit b18d8e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ trait ForcedMaxOutputRowsBase extends Rule[LogicalPlan] {

protected def canInsertLimit(p: LogicalPlan, maxOutputRowsOpt: Option[Int]): Boolean = {
maxOutputRowsOpt match {
case Some(forcedMaxOutputRows) if forcedMaxOutputRows >= 0 => canInsertLimitInner(p) &&
!p.maxRows.exists(_ <= forcedMaxOutputRows)
case Some(forcedMaxOutputRows) if forcedMaxOutputRows >= 0 =>
canInsertLimitInner(p) && !p.maxRows.exists(_ <= forcedMaxOutputRows)
case _ => false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ trait ForcedMaxOutputRowsBase extends Rule[LogicalPlan] {

protected def canInsertLimit(p: LogicalPlan, maxOutputRowsOpt: Option[Int]): Boolean = {
maxOutputRowsOpt match {
case Some(forcedMaxOutputRows) if forcedMaxOutputRows >= 0 => canInsertLimitInner(p) &&
!p.maxRows.exists(_ <= forcedMaxOutputRows)
case Some(forcedMaxOutputRows) if forcedMaxOutputRows >= 0 =>
canInsertLimitInner(p) && !p.maxRows.exists(_ <= forcedMaxOutputRows)
case _ => false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ trait ForcedMaxOutputRowsBase extends Rule[LogicalPlan] {

protected def canInsertLimit(p: LogicalPlan, maxOutputRowsOpt: Option[Int]): Boolean = {
maxOutputRowsOpt match {
case Some(forcedMaxOutputRows) if forcedMaxOutputRows >= 0 => canInsertLimitInner(p) &&
!p.maxRows.exists(_ <= forcedMaxOutputRows)
case Some(forcedMaxOutputRows) if forcedMaxOutputRows >= 0 =>
canInsertLimitInner(p) && !p.maxRows.exists(_ <= forcedMaxOutputRows)
case _ => false
}
}
Expand Down

0 comments on commit b18d8e5

Please sign in to comment.