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

Add an option to return an empty DataFrame from an RDD generated by a Hadoop file when there are no usable paths

    XMLWordPrintableJSON

Details

    Description

      When using file-based data from custom formats, Spark's ability to use Hadoop's FileInputFormats is very handy. However, when the path they are pointed at contains no usable data, they throw an IOException saying "No input paths specified in job".

      It would be a nice feature if the DataFrame API somehow could capture this and return an empty DataFrame instead of failing the job.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rabe-jens Jens Rabe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: