Skip to content

Commit

Permalink
fix read date type convert issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehil committed Jan 6, 2025
1 parent b81bf16 commit e821f05
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 e821f05

Please sign in to comment.