I want to create a table and load data into it in Snowflake from Databricks using Python/Scala.
Below is my code snippet. I'm getting the below error. How can I create the table first if not exists in Databricks notebook using Python or Scala and then load the data?
If so, what functions do I need to use? Below gives me an error.
df1.write.format("snowflake").options(sfOptions).option("dbtable","TEST_TABLE")
.mode(SaveMode.Append)