Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-41284 Feature parity: I/O in Spark Connect
  3. SPARK-42733

df.write.format().save() should support calling with no path or table name

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.1
    • Connect
    • None

    Description

      When calling `session.range(5).write.format("xxx").options().save()` Spark Connect currently throws an assertion error because it expects that either path or tableName are present. According to our current PySpark implementation that is not necessary though.

      if format is not None:
                  self.format(format)
              if path is None:
                  self._jwrite.save()
              else:
                  self._jwrite.save(path)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            grundprinzip-db Martin Grund
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: