is there a way to write streaming data to delta and create a table in spark catalog at the same time?

User16826987838
Databricks Employee
Databricks Employee
 

Ryan_Chynoweth
Databricks Employee
Databricks Employee

Yes, in your write stream you can save it as a table in the delta format without a problem. In DBR 8, the default table format is delta.

See this code, please note that the "..." is supplied to show that additional options may be required:

df.writeStream.format("delta")...saveAsTable("<tablename>")