Skip to content

Commit

Permalink
Fixing the wrong type casting of TimeStamp to OTimeStamp when read fr…
Browse files Browse the repository at this point in the history
…om spark dataFrame. (apache#159)

(cherry picked from commit 8ccbfdc)
  • Loading branch information
HanumathRao authored and Mikhail Gorbov committed Jan 2, 2018
1 parent 910e8a8 commit 1e105aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ object MapRSqlUtils {
case (BinaryType) => DBValueBuilderImpl.KeyValueBuilder.initFrom(element.asInstanceOf[ByteBuffer])
case (BooleanType) => DBValueBuilderImpl.KeyValueBuilder.initFrom(element.asInstanceOf[Boolean])
case (DateType) => DBValueBuilderImpl.KeyValueBuilder.initFrom(new ODate(element.asInstanceOf[java.sql.Date]))
case (TimestampType) => DBValueBuilderImpl.KeyValueBuilder.initFrom(element.asInstanceOf[OTimestamp])
case (TimestampType) => DBValueBuilderImpl.KeyValueBuilder.initFrom(new OTimestamp(element.asInstanceOf[java.sql.Timestamp].getTime))
case (NullType) => DBValueBuilderImpl.KeyValueBuilder.initFromNull()
case (DoubleType) => DBValueBuilderImpl.KeyValueBuilder.initFrom(element.asInstanceOf[Double])
case (IntegerType) => DBValueBuilderImpl.KeyValueBuilder.initFrom(element.asInstanceOf[Integer])
Expand Down

0 comments on commit 1e105aa

Please sign in to comment.