title: How to read from Glue catalog with spark structured streaming
body: <p>Is there a way to read from Glue catalog using structured streaming?
  When I do something like this:</p>
  <pre><code>sparkSession
          .catalog()
          .createTable(&quot;test&quot;, &quot;s3n://test-bucket/data/&quot;)
          .as(Encoders.bean(dataType))
          .writeStream()
          .outputMode(OutputMode.Append())
          .format(&quot;parquet&quot;)
          .option(&quot;path&quot;, outputFolder.getRoot().toPath().toString())
          .option(&quot;checkpointLocation&quot;, checkpointFolder.getRoot().toPath().toString())
          .queryName(&quot;test-query&quot;)
          .start();
  </code></pre>
  <p>I get error <code>org.apache.spark.sql.AnalysisException: 'writeStream' can be called only on streaming Dataset/DataFrame;</code></p>
  <h3>Update</h3>
  <p>Code snippet and exception in question are not related to actual question. I'd like to know if there is a way to use Glue catalog as a source for structured streaming in spark</p>