Fix Special Case Types in SqlRowWriter

Description

Currently you cannot write Longs to VarInts from in DataFrames

https://github.com/datastax/spark-cassandra-connector/blob/master/spark-cassandra-connector/src/main/scala/com/datastax/spark/connector/writer/SqlRowWriter.scala#L28-L31

We can extend this to allow for other numeric types and fail more gracefully if we can't figure out a proper conversion

In addition

Will both improperly deal will nulls

Pull Requests

https://github.com/datastax/spark-cassandra-connector/pull/905

Activity

Show:

Russell Spitzer December 30, 2015 at 8:33 PM

Fix tested by , feel free to post your notes here

Russell Spitzer December 29, 2015 at 5:39 PM

I've decided to just pull out the special casing code, the normal converter code is just as good in this situation and can handle the situations explicitly matched for in my tests.

Fixed

Details

Assignee

Reporter

Reviewer

Components

Fix versions

Priority

Created December 28, 2015 at 10:01 PM
Updated January 15, 2016 at 9:35 PM
Resolved January 15, 2016 at 6:01 PM