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!

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now