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

Empty files should be skipped while write to file

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Consider of this scenario, source table has many partitions and data files, after the query filter, only a few data write to the destination dir.
      In this case the destination dir or table will have many empty files or files only have schema meta(parquet format), I know we can use coalesce but skip the empty file may be more better in this case.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                XuanYuan Yuanjian Li
                Reporter:
                XuanYuan Yuanjian Li
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: