Skip to content

Commit

Permalink
Fix partitioning distribution of data when no equiality join
Browse files Browse the repository at this point in the history
  • Loading branch information
Ackuq committed May 5, 2022
1 parent a4efcc1 commit 29b5b09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scala/src/main/scala/execution/PITJoinExec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ protected[pit] case class PITJoinExec(

override def requiredChildDistribution: Seq[Distribution] = {
if (leftEquiKeys.isEmpty || rightEquiKeys.isEmpty) {
UnspecifiedDistribution :: UnspecifiedDistribution :: Nil
// TODO: This should be improved, but for now just keep everything in one partition
AllTuples :: AllTuples :: Nil
} else {
HashClusteredDistribution(leftEquiKeys) :: HashClusteredDistribution(
rightEquiKeys
Expand Down

0 comments on commit 29b5b09

Please sign in to comment.