cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Foreign table to delta streaming table

ksenija
Contributor

I want to copy a table from a foreign catalog as my streaming table. This is the code I used but I am getting error: Table table_name does not support either micro-batch or continuous scan.;

 

spark.readStream
                .table(table_name)
                .writeStream
                .trigger(availableNow=True)
                .option("checkpointLocation", "dbfs:/folder_path")
                .toTable(new_table)
 
3 REPLIES 3

MLE123
New Contributor II

Bumping this thread because I have the same question and this is still the first result on Google (c. October 2024). Many thanks for anyone who is able to assist!

sbiales
New Contributor II

I also want to bump this! This is my exact problem right now as well.

cgrant
Databricks Employee
Databricks Employee

What is the underlying type of the table you are trying to stream from? Structured Streaming does not currently support streaming reads via JDBC, so reading from MySQL, Postgres, etc are not supported.

If you are trying to perform stream ingestion from such sources, we instead recommend using LakeFlow Connect for supported sources.

Another alternative is to write a Python datasource that performs these streaming reads.

And of course, if your source supports exposing a change log of your data, like the binlog in MySQL or services like AWS DMS, you can set these up and use Databricks Autoloader for efficient incremental ingestion.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group