Skip to content

Commit

Permalink
Fixed the return type for matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Manasaveena Ravindran committed Nov 30, 2022
1 parent ce18f40 commit fb692b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,10 @@ case class JdbcSinkConfig[ADT <: FlinkEvent](
}
}

def _matcher(value : Any): Unit ={
val encoder = new JsonRowEncoder[Map[String,Any]]()
def _matcher(value: Any) = {
val encoder = new JsonRowEncoder[Map[String, Any]]()
value match {
case ts: Instant => Timestamp.from(ts)
case ts: Instant => Timestamp.from(ts)
case m: Map[String, Any] => encoder.encode(m) match {
case Success(jsonString) => jsonString
case Failure(e) => {
Expand Down

0 comments on commit fb692b9

Please sign in to comment.