Skip to content

Commit

Permalink
Handle single valued case
Browse files Browse the repository at this point in the history
  • Loading branch information
zeotuan committed Oct 1, 2024
1 parent c8c15e5 commit cbc01e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import scala.reflect.ClassTag
object ProductUtil {
private[mrpowers] def productOrRowToSeq(product: Any): Seq[Any] = {
product match {
case null => Seq.empty
case r: Row => r.toSeq
case p: Product => p.productIterator.toSeq
case _ => throw new IllegalArgumentException("Only Row and Product types are supported")
case null => Seq.empty
case s => Seq(s)
}
}
private[mrpowers] def showProductDiff[T: ClassTag](
Expand Down

0 comments on commit cbc01e7

Please sign in to comment.