cloud-fan commented on a change in pull request #31920:
URL: https://github.com/apache/spark/pull/31920#discussion_r612169417



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashJoin.scala
##########
@@ -69,16 +70,14 @@ trait HashJoin extends JoinCodegenSupport {
       joinType match {
         case _: InnerLike | RightOuter => right.outputPartitioning
         case x =>
-          throw new IllegalArgumentException(
-            s"HashJoin should not take $x as the JoinType with building left 
side")
+          throw 
QueryExecutionErrors.hashJoinCannotTakeJoinTypeWithBuildLeftError(x)

Review comment:
       ditto to other changes in this file




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to