Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37307

Don't obtain JDBC connection for empty partition

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.2.1, 3.3.0
    • Spark Core
    • None

    Description

      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.

      Attachments

        Activity

          People

            srowen Sean R. Owen
            srowen Sean R. Owen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: