Github user weicheng113 commented on the issue:
https://github.com/apache/spark/pull/13600
@rxin , With current implementation, i cannot think a way to extend it to
support other types, as it restricts itself on long lower&upper bounds only.
The major API changes I did are below and support back compatibility:
`class JdbcRDD[T: ClassTag](
sc: SparkContext,
getConnection: () => Connection,
sql: String,
partitions: Seq[JdbcPartition],
mapRow: (ResultSet) => T)
extends RDD[T](sc, Nil) with Logging {
...`
`
trait JdbcPartition extends Serializable {
def fill(stmt: PreparedStatement): Unit
}
`
The changes i think it is necessary as JdbcPartition leave room for
extension, allowing any potential types of lower&upper bound types and other
cases.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]