Skip to content

Commit

Permalink
Merge pull request #25 from Ackuq/fix/distribution
Browse files Browse the repository at this point in the history
Fix partitioning distribution of data when no equiality join
  • Loading branch information
Ackuq authored May 5, 2022
2 parents a4efcc1 + 29b5b09 commit b34ab6d
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 b34ab6d

Please sign in to comment.