Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/22560#discussion_r220733266
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala
---
@@ -40,28 +40,45 @@ import org.apache.spark.sql.util.SchemaUtils
import org.apache.spark.unsafe.types.UTF8String
import org.apache.spark.util.NextIterator
+trait ConnectionFactoryProvider {
+ def createConnectionFactory(options: JDBCOptions): () => Connection
+}
+
+object LoadDriver {
+ def apply(options: JDBCOptions): Driver = {
--- End diff --
Is this designed to be shared by 3rd party providers?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]