Is there a way to read from Glue catalog using structured streaming? When I do something like this:
sparkSession
.catalog()
.createTable("test", "s3n://test-bucket/data/")
.as(Encoders.bean(dataType))
.writeStream()
.outputMode(OutputMode.Append())
.format("parquet")
.option("path", outputFolder.getRoot().toPath().toString())
.option("checkpointLocation", checkpointFolder.getRoot().toPath().toString())
.queryName("test-query")
.start();
I get error org.apache.spark.sql.AnalysisException: 'writeStream' can be called only on streaming Dataset/DataFrame;
Update
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