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: 

What is default location when using "writeStream"?

Mado
Valued Contributor II

Hi,

Assume that I want to write a table by" writeStream". Where is the default location on DBFS where the table is saved?

Sample code:

spark.table("TEMP_SILVER").writeStream
 
        .option("checkpointLocation", "dbfs:/user/AAA@gmail.com")
 
        .trigger(availableNow=True)
 
        .table("silver")
 

2 REPLIES 2

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Mohammad Saber​ ,

I would like to share the following docs that will help you to undertand better what this Structured Streaming API does:

1)https://spark.apache.org/docs/3.2.0/api/java/org/apache/spark/sql/streaming/DataStreamWriter.html#toTable-java.lang.String-

2) https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html#streaming-table-api...

I hope it helps

Anonymous
Not applicable

Hi @Mohammad Saber​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

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