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

SQL on streaming Temp view fails

    XMLWordPrintableJSON

Details

    Description

      The following code fails in the last step with Spark Connect.

      The root cause is that Connect server triggers physical plan on a streaming Dataframe in SparkConnectPlanner.scala. Better to avoid that entirely, but at least for streaming it should be avoided since it cannot be done with a batch execution engine.

      df = spark.readStream.format("rate").option("numPartitions", "1").load()
      df.createOrReplaceTempView("temp_view")
      
      view_df = spark.sql("SELECT * FROM temp_view") // FAILS

       

      Attachments

        Activity

          People

            jgauthier Jean-Francois Desjeans Gauthier
            rangadi Raghu Angadi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: