Github user fsauer65 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22560#discussion_r220734063
  
    --- 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 --
    
    Yes, I'm also using it in the example for the RDS factory - any custom 
factory would have to do this or repeat the logic


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to