filipniziol
Esteemed Contributor

Hi @n_joy ,

Based on the docs it will not be possible.

https://spark.apache.org/docs/latest/api/python/reference/pyspark.ss/api/pyspark.sql.streaming.DataS...

If you check toTable definition, it suggest the table is already in place ("output results to the given table").
I think the fact that the table is is being created is anyway pretty cool. 

Neither delta lake documentation you shared nor the Apache Spark documentation offer any parameter that enable configuring table properties. 

The solution here is to have CREATE script for a table, specify the table properties and then to run streaming query to insert the data.

View solution in original post