Skip to content

Commit c3dcb4f

Browse files
author
Sophie Wang
committed
rebase
1 parent f2f5786 commit c3dcb4f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

spark/src/main/scala/ai/chronon/spark/JoinUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ object JoinUtils {
8181
val leftDataType = leftDf.schema(leftDf.schema.fieldIndex(column)).dataType
8282
val rightDataType = rightDf.schema(rightDf.schema.fieldIndex(column)).dataType
8383
assert(leftDataType == rightDataType,
84-
s"Column '$column' has mismatched data types - left type: $leftDataType vs. right type $rightDataType")
84+
s"Column '$column' has mismatched data types - left type: $leftDataType vs. right type $rightDataType")
8585
}
8686

8787
val joinedDf = leftDf.join(rightDf, keys, joinType)

spark/src/main/scala/ai/chronon/spark/TableUtils.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import java.time.{Instant, ZoneId}
1111
import scala.collection.mutable
1212
import scala.util.{Success, Try}
1313

14-
1514
case class TableUtils(sparkSession: SparkSession) {
1615

1716
private val ARCHIVE_TIMESTAMP_FORMAT = "yyyyMMddHHmmss"

spark/src/test/scala/ai/chronon/spark/test/JoinUtilsTest.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package ai.chronon.spark.test
22

3+
import ai.chronon.api.Constants
34
import ai.chronon.spark.JoinUtils.{contains_any, set_add}
45
import ai.chronon.spark.{JoinUtils, SparkSessionBuilder, TableUtils}
56
import org.apache.spark.rdd.RDD
@@ -241,8 +242,10 @@ class JoinUtilsTest {
241242
assertTrue(filteredDf.schema.fieldNames.sorted sameElements filter.sorted)
242243
}
243244

245+
import ai.chronon.api.{LongType, StringType, StructField, StructType}
246+
244247
def createSampleTable(tableName:String = "testSampleTable"): DataFrame = {
245-
val schema = ai.chronon.api.StructType(
248+
val schema = StructType(
246249
tableName,
247250
Array(
248251
StructField("listing", LongType),

0 commit comments

Comments
 (0)