Skip to content

Commit

Permalink
add method comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Yu committed Dec 16, 2024
1 parent df8d283 commit 8a153fd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,12 @@ class MultiPartitionPlanner(val partitionLocationProvider: PartitionLocationProv
}}
}

/**
*
* Extracted to reduce complexity in materializePlanHandleSplitLeaf.
*
* @param plan the plan to compute the offset for.
*/
private def computeOffsetMs(plan: LogicalPlan): Seq[Long] = plan match {
case op: ScalarVectorBinaryOperation => Seq(getOffsetMillis(op).max)
case _ => getOffsetMillis(plan)
Expand Down

0 comments on commit 8a153fd

Please sign in to comment.