Skip to content

Commit

Permalink
update event_date type in case class (streamSocketEventToHDFSV5, Stre…
Browse files Browse the repository at this point in the history
…amFromSocket5
  • Loading branch information
yennan.liu committed Apr 27, 2021
1 parent 99e4de0 commit ff03446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spark/src/main/scala/com/yen/dev/StreamFromSocket5.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object StreamFromSocket5 extends App {

val eventSchema = StructType(List(
StructField("id", IntegerType),
StructField("event_date", LongType),
StructField("event_date", StringType),
StructField("msg", StringType)
))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object streamSocketEventToHDFSV5 extends App {

val eventSchema = StructType(List(
StructField("id", IntegerType),
StructField("event_date", LongType),
StructField("event_date", StringType),
StructField("msg", StringType)
))

Expand Down

0 comments on commit ff03446

Please sign in to comment.