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

DataStreamWriter should document that it only supports Parquet for now

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1, 2.1.0
    • Component/s: Documentation, Input/Output
    • Labels:
      None
    • Environment:

      Mac OSX

      Description

      The API documentations for DataStreamWriter.format states "Specifies the underlying output data source. Built-in options include "parquet", "json", etc." but when specifying "json" or "text" for the format. the following exception is thrown:
      Exception in thread "main" java.lang.UnsupportedOperationException: Data source json does not support streamed writing
      at org.apache.spark.sql.execution.datasources.DataSource.createSink(DataSource.scala:273)
      at org.apache.spark.sql.streaming.DataStreamWriter.start(DataStreamWriter.scala:291)

      The only format that works is .format("parquet")

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                srowen Sean Owen
                Reporter:
                billreed63@gmail.com Bill Reed
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: