We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d8f3af commit a74dca9Copy full SHA for a74dca9
spark/src/main/scala/ai/chronon/spark/TableUtils.scala
@@ -570,8 +570,6 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
570
rangeWheres: Seq[String],
571
fallbaour clientsSelects: Option[Map[String, String]] = None): DataFrame = {
572
573
- var df = loadTable(table)
574
-
575
val selects = QueryUtils.buildSelects(selectMap, fallbaour clientsSelects)
576
577
logger.info(s""" Scanning data:
@@ -584,6 +582,8 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
584
582
| ${rangeWheres.mkString(",\n ").green}
585
583
|""".stripMargin)
586
+ var df = loadTable(table)
+
587
if (selects.nonEmpty) df = df.selectExpr(selects: _*)
588
589
val allWheres = wheres ++ rangeWheres
0 commit comments