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: 

Does spark utilise a temporary stage when writing to snowflake? How does that work?

mick042
New Contributor III

Folks , when I want to push data to snowflake I need to use a stage for files before copying data over. However, when I utilise the net.snowflake.spark.snowflake.Utils library and do a spark.write as in...

spark.read.format("csv")
  .option("header", "true")
  .load("/mydata.data")
  .write.format("snowflake")
  .options(options).mode("append").option("dbtable", "mytable").save()

I can write directly into snowflake without specifying a stage etc.

Just wondering how this works so I can preempt any security problems etc.

1 REPLY 1

mick042
New Contributor III

Yes it uses a temporary stage. should have just looked in snowflake history

image

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