Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions spark/src/main/scala/ai/chronon/spark/GroupBy.scala
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,10 @@ object GroupBy {
overrideStartPartition: Option[String] = None,
skipFirstHole: Boolean = true): Unit = {
assert(
groupByConf.backfillStartDate != null,
s"GroupBy:${groupByConf.metaData.name} has null backfillStartDate. This needs to be set for offline backfilling.")
groupByConf.backfillStartDate != null || overrideStartPartition != null,
s"GroupBy:${groupByConf.metaData.name} has null backfillStartDate or overrideStartPartition." +
s" This needs to be set for offline backfilling."
)
groupByConf.setups.foreach(tableUtils.sql)
val overrideStart = overrideStartPartition.getOrElse(groupByConf.backfillStartDate)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the group by backfill start date is meant for DAG and task scheduling purpose. If there is no such parameter, we should not even enter the group by backfill mode.

And the start partition override is implemented at line 694 already.

val outputTable = groupByConf.metaData.outputTable
Expand Down