[HUDI-908] Add some data types to HoodieTestDataGenerator and fix some some bugs. (#1690)
This commit is contained in:
@@ -110,7 +110,11 @@ object AvroConversionHelper {
|
||||
if (item == null) {
|
||||
null
|
||||
} else {
|
||||
new Date(item.asInstanceOf[Long])
|
||||
if (item.isInstanceOf[Integer]) {
|
||||
new Date(item.asInstanceOf[Integer].longValue())
|
||||
} else {
|
||||
new Date(item.asInstanceOf[Long])
|
||||
}
|
||||
}
|
||||
case (TimestampType, LONG) =>
|
||||
(item: AnyRef) =>
|
||||
|
||||
Reference in New Issue
Block a user