Skip to content

Commit

Permalink
feat: SKFP-1339 add custom mainDestination for enrich variant (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
celinepelletier authored Nov 27, 2024
1 parent 71838f7 commit a2168f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import java.time.LocalDateTime
case class Variants(rc: RuntimeETLContext, participantId: Column = col("participant_id"),
affectedStatus: Column = col("affected_status"), filterSnv: Option[Column] = Some(col("has_alt")),
snvDatasetId: String, splits: Seq[OccurrenceSplit], extraAggregations: Seq[Column] = Nil,
checkpoint: Boolean = false, spliceAi: Boolean = true) extends SimpleSingleETL(rc) {
override val mainDestination: DatasetConf = conf.getDataset("enriched_variants")
checkpoint: Boolean = false, spliceAi: Boolean = true, destinationDataSetId: String = "enriched_variants") extends SimpleSingleETL(rc) {
override val mainDestination: DatasetConf = conf.getDataset(destinationDataSetId)
if (checkpoint) {
spark.sparkContext.setCheckpointDir(s"${mainDestination.rootPath}/checkpoints")
}
Expand Down

0 comments on commit a2168f1

Please sign in to comment.