Skip to content

Commit

Permalink
Add startingTimestamp option (#22)
Browse files Browse the repository at this point in the history
* Add startingTimestamp option

* Bump ver
  • Loading branch information
ChewingGlass authored Jan 8, 2024
1 parent abe572d commit a4eb13c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spark-streaming-sql/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
scalaVersion := "2.13.8"
name := "spark-streaming-sql"
organization := "helium"
version := "1.0.2"
version := "1.0.3"

val sparkVersion = "3.4.0"

Expand Down
1 change: 1 addition & 0 deletions spark-streaming-sql/src/main/scala/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ object Main extends App {
.outputMode("append")
.partitionBy(sys.env.get("PARTITION_BY").get.split(","): _*)
.option("checkpointLocation", sys.env.get("CHECKPOINT").get)
.option("startingTimestamp", sys.env.getOrElse("STARTING_TIMESTAMP", "2017-01-01"))
.trigger(trigger)
.start(sys.env.get("OUTPUT").get)
.awaitTermination()
Expand Down

0 comments on commit a4eb13c

Please sign in to comment.