[ 
https://issues.apache.org/jira/browse/SPARK-38361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jiaan.geng updated SPARK-38361:
-------------------------------
    Description: 
At present, the parameter of the factory method for obtaining JDBC connection 
is empty because the JDBC URL of some databases is fixed and unique.
However, for databases such as Clickhouse, connection is related to the shard 
node.

So I think the parameter form of getConnection: Partition = > Connection is 
more general.

  was:
At present, the parameter of the factory method for obtaining JDBC connection 
is empty because the JDBC URL of some databases is fixed and unique.
However, for databases such as Clickhouse, connection is related to the shard 
node.

So I think the parameter form of getconnection: Option[partition] = > 
connection is more general.


> Add factory method getConnection into JDBCDialect.
> --------------------------------------------------
>
>                 Key: SPARK-38361
>                 URL: https://issues.apache.org/jira/browse/SPARK-38361
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: jiaan.geng
>            Priority: Major
>
> At present, the parameter of the factory method for obtaining JDBC connection 
> is empty because the JDBC URL of some databases is fixed and unique.
> However, for databases such as Clickhouse, connection is related to the shard 
> node.
> So I think the parameter form of getConnection: Partition = > Connection is 
> more general.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to