You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/11/13 07:05:00 UTC

[jira] [Commented] (SPARK-37307) Don't obtain JDBC connection for empty partition

    [ https://issues.apache.org/jira/browse/SPARK-37307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17443027#comment-17443027 ] 

Apache Spark commented on SPARK-37307:
--------------------------------------

User 'srowen' has created a pull request for this issue:
https://github.com/apache/spark/pull/34572

> Don't obtain JDBC connection for empty partition
> ------------------------------------------------
>
>                 Key: SPARK-37307
>                 URL: https://issues.apache.org/jira/browse/SPARK-37307
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.2.0
>            Reporter: Sean R. Owen
>            Priority: Minor
>
> In JdbcUtils.scala:savePartition, the code obtains a database connection even when there is no data in the partition. It works correctly and returns it, but, may be advantageous to simply skip that and other overhead if nothing will be written at all.



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

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