SQL compilation error while connecting to snowflake from Databricks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2024 07:34 PM
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2024 01:55 AM
Can you try the below code snippet? And share the stacktrace if the issue persists.
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") \
.option("dbtable", "test") \
.load()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2024 09:25 AM
I don't think adding the "\" will work in this case. Infact its not required in this dataframe operation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 01:16 PM
@Retired_mod Could you please help with this ?

