File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
spark/src/main/scala/ai/chronon/spark Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ object JoinUtils {
171171 val leftEnd = Option (leftSource.query.endPartition).getOrElse(endPartition)
172172
173173 logger.info(s " Attempting to fill join partition range: $leftStart to $leftEnd" )
174- PartitionRange (leftStart, leftEnd)(tableUtils .partitionSpec)
174+ PartitionRange (leftStart, leftEnd)(leftSource .partitionSpec)
175175 }
176176
177177 /** *
@@ -325,7 +325,7 @@ object JoinUtils {
325325 val leftSideKeyName = joinPart.rightToLeft(keyName)
326326 logger.info(
327327 s " KeyName: $keyName, leftSide KeyName: $leftSideKeyName , Join right to left: ${joinPart.rightToLeft
328- .mkString(" , " )}" )
328+ .mkString(" , " )}" )
329329 val values = collectedLeft.map(row => row.getAs[Any ](leftSideKeyName))
330330 // Check for null keys, warn if found, err if all null
331331 val (notNullValues, nullValues) = values.partition(_ != null )
@@ -492,9 +492,12 @@ object JoinUtils {
492492 }
493493
494494 def parseSkewKeys (jmap : java.util.Map [String , java.util.List [String ]]): Option [Map [String , Seq [String ]]] = {
495- Option (jmap).map(_.toScala.map { case (key, list) =>
496- key -> list.asScala
497- }.toMap)
495+ Option (jmap).map(
496+ _.toScala
497+ .map { case (key, list) =>
498+ key -> list.asScala
499+ }
500+ .toMap)
498501 }
499502
500503 def shiftDays (leftDataModel : DataModel , joinPart : JoinPart , leftRange : PartitionRange ): PartitionRange = {
You can’t perform that action at this time.
0 commit comments