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

DataStreamWriter should document that it only supports Parquet for now

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • Documentation, Input/Output
    • None
    • 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

              srowen Sean R. Owen
              billreed63@gmail.com Bill Reed
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: