You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2021/11/12 14:49:00 UTC
[jira] [Created] (SPARK-37307) Don't obtain JDBC connection for
empty partition
Sean R. Owen created SPARK-37307:
------------------------------------
Summary: 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
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