cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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
 
1 REPLY 1

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>")