cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Moderator
Moderator

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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.