kite-sdk / kite

Kite SDK
http://kitesdk.org/docs/current/
Apache License 2.0
394 stars 262 forks source link

Support Timestamp type in HiveSchemaConverter #470

Open AhmedKamal opened 7 years ago

AhmedKamal commented 7 years ago

Avro is now supporting Timestamp data type in 1.8.1 version but kite-sdk is still not able to handle timestamp data types and is depending on an older version of Avro.

Exception Stack trace while trying to convert Hive Table containing Timestamp to Avro

java.lang.IllegalArgumentException: Cannot convert unsupported type: timestamp

at org.kitesdk.shaded.com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
at org.kitesdk.data.spi.hive.HiveSchemaConverter.convert(HiveSchemaConverter.java:199)
at org.kitesdk.data.spi.hive.HiveSchemaConverter.convertField(HiveSchemaConverter.java:173)
at org.kitesdk.data.spi.hive.HiveSchemaConverter.convertTable(HiveSchemaConverter.java:132)