Skip to content

Commit

Permalink
[fix](connector) fix read date type convert issue (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehil authored Jan 7, 2025
1 parent 3938954 commit 38a60ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ object RowConvertors {
dataType match {
case StringType => UTF8String.fromString(v.asInstanceOf[String])
case TimestampType => DateTimeUtils.fromJavaTimestamp(Timestamp.valueOf(v.asInstanceOf[String]))
case DateType => DateTimeUtils.fromJavaDate(Date.valueOf(v.asInstanceOf[String]))
case DateType => DateTimeUtils.fromJavaDate(v.asInstanceOf[Date])
case _: MapType =>
val map = v.asInstanceOf[Map[String, String]]
val keys = map.keys.toArray
Expand Down

0 comments on commit 38a60ff

Please sign in to comment.