Hi All,
I'm trying to connect to the snowflake database from databricks notebook either to read the data or write the data. However I'm getting an weird error. The code and error are provided as follows,
snowflake_table = (spark.read
.format("snowflake")
.option("host", "******.east-us-2.azure.snowflakecomputing.com")
.option("user", "******")
.option("password", "*********")
.option("sfWarehouse", "Compute_WH")
.option("database", "SalesDevDB")
.option("schema", "gold") # Optional - will use default schema "public" if not specified.
.option("dbtable", "test")
.load()
)
Error:
net.snowflake.client.jdbc.SnowflakeSQLException: SQL compilation error: