Koushur
Koushur

Reputation: 301

Writing from Spark Data Frame to Snowflake named stage

I am new to snowflake and very naive about spark. Is there any reference or good example how data is written from spark data frame to named stage in snowflake.

Appreciate your help!

Upvotes: 2

Views: 1205

Answers (1)

Sergiu
Sergiu

Reputation: 4588

Examples are provided in our API reference, you can read more here

A quick example of writing a DataFrame to Snowflake:

df.write.mode("overwrite").saveAsTable("T")

The stage is used in between but the target is a table.

Upvotes: 3

Related Questions