Skip to content

Commit

Permalink
test examples against Flink 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
novakov-alexey committed Oct 20, 2024
1 parent fb6c55a commit 8cae505
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,18 @@ lazy val `examples` = (project in file("modules/examples"))
publish / skip := true,
releaseProcess := Seq.empty[ReleaseStep], // Release for example is not needed
libraryDependencies ++= Seq(
"org.flinkextended" %% "flink-scala-api" % "1.18.1_1.2.0",
"org.apache.flink" % "flink-runtime-web" % "1.18.1" % Provided,
"org.apache.flink" % "flink-clients" % "1.18.1" % Provided,
"org.apache.flink" % "flink-state-processor-api" % "1.18.1" % Provided,
"org.flinkextended" %% "flink-scala-api" % "1.20.0_1.2.0",
"org.apache.flink" % "flink-runtime-web" % "1.20.0" % Provided,
"org.apache.flink" % "flink-clients" % "1.20.0" % Provided,
"org.apache.flink" % "flink-state-processor-api" % "1.20.0" % Provided,
"org.apache.flink" % "flink-connector-kafka" % "3.0.2-1.18" % Provided,
"org.apache.flink" % "flink-connector-files" % "1.18.1" % Provided,
"org.apache.flink" % "flink-table-runtime" % "1.18.1" % Provided,
"org.apache.flink" % "flink-table-planner-loader" % "1.18.1" % Provided,
"org.apache.flink" % "flink-connector-files" % "1.20.0" % Provided,
"org.apache.flink" % "flink-table-runtime" % "1.20.0" % Provided,
"org.apache.flink" % "flink-table-planner-loader" % "1.20.0" % Provided,
"io.bullet" %% "borer-core" % "1.14.1" % Provided,
"ch.qos.logback" % "logback-classic" % "1.4.14" % Provided,
"org.apache.flink" % "flink-test-utils" % "1.18.1" % Test,
"org.apache.flink" % "flink-streaming-java" % "1.18.1" % Test classifier "tests",
"org.apache.flink" % "flink-test-utils" % "1.20.0" % Test,
"org.apache.flink" % "flink-streaming-java" % "1.20.0" % Test classifier "tests",
"org.scalatest" %% "scalatest" % "3.2.15" % Test
),
Compile / run := Defaults
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,25 @@ import org.apache.flink.api.common.state.{
import org.apache.flink.metrics.groups.OperatorMetricGroup

import java.util
import org.apache.flink.api.common.typeutils.TypeSerializer
import org.apache.flink.api.common.JobInfo
import org.apache.flink.api.common.TaskInfo
import org.apache.flink.api.common.typeinfo.TypeInformation
import java.{util => ju}

class FakeRuntimeContext extends RuntimeContext:


override def getJobInfo(): JobInfo = ???

override def getTaskInfo(): TaskInfo = ???

override def getGlobalJobParameters(): ju.Map[String, String] = ???

override def createSerializer[T](typeInformation: TypeInformation[T]): TypeSerializer[T] = ???

override def isObjectReuseEnabled(): Boolean = true

override def getJobId: JobID = ???

override def getTaskName: String = ???
Expand Down

0 comments on commit 8cae505

Please sign in to comment.