Skip to content

Commit f3acb8e

Browse files
varant-zlaiezvz
andauthored
Using tableUtils.partitionColumn rather than hardcoded ds (#579)
## Summary Using tableUtils.partitionColumn rather than hardcoded ds ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update Co-authored-by: ezvz <[email protected]>
1 parent f5a2d89 commit f3acb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class MergeJob(node: JoinMergeNode, range: DateRange, joinParts: Seq[JoinPart])(
9797
} else {
9898
dayStep
9999
}
100-
val wheres = effectiveRange.whereClauses("ds")
100+
val wheres = effectiveRange.whereClauses(tableUtils.partitionColumn)
101101
val sql = QueryUtils.build(null, partTable, wheres)
102102
logger.info(s"Pulling data from joinPart table with: $sql")
103103
(joinPart, tableUtils.scanDfBase(null, partTable, List.empty, wheres, None))

0 commit comments

Comments
 (0)