Skip to content

Commit f7c53e9

Browse files
committed
to IllegalArgumentException
1 parent f8dea2d commit f7c53e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashOuterJoin.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ case class HashOuterJoin(
4848
case LeftOuter => left.outputPartitioning
4949
case RightOuter => right.outputPartitioning
5050
case FullOuter => UnknownPartitioning(left.outputPartitioning.numPartitions)
51-
case x => throw new IllegalStateException(s"HashOuterJoin should not take $x as the JoinType")
51+
case x => throw new IllegalArgumentException(s"HashOuterJoin should not take $x as the JoinType")
5252
}
5353

5454
override def requiredChildDistribution: Seq[ClusteredDistribution] =
@@ -63,7 +63,7 @@ case class HashOuterJoin(
6363
case FullOuter =>
6464
left.output.map(_.withNullability(true)) ++ right.output.map(_.withNullability(true))
6565
case x =>
66-
throw new IllegalStateException(s"HashOuterJoin should not take $x as the JoinType")
66+
throw new IllegalArgumentException(s"HashOuterJoin should not take $x as the JoinType")
6767
}
6868
}
6969

@@ -217,7 +217,7 @@ case class HashOuterJoin(
217217
}
218218

219219
case x =>
220-
throw new IllegalStateException(s"HashOuterJoin should not take $x as the JoinType")
220+
throw new IllegalArgumentException(s"HashOuterJoin should not take $x as the JoinType")
221221
}
222222
}
223223
}

0 commit comments

Comments
 (0)