<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SQL compilation error while connecting to snowflake from Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72247#M34528</link>
    <description>&lt;P&gt;I don't think adding the "\" will work in this case. Infact its not required in this dataframe operation.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 16:25:57 GMT</pubDate>
    <dc:creator>Kaviprakash_S</dc:creator>
    <dc:date>2024-06-10T16:25:57Z</dc:date>
    <item>
      <title>SQL compilation error while connecting to snowflake from Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72183#M34512</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;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,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;snowflake_table = (spark.read&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .format("snowflake")&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .option("host", "******.east-us-2.azure.snowflakecomputing.com")&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .option("user", "******")&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .option("password", "*********")&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .option("sfWarehouse", "Compute_WH")&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .option("database", "SalesDevDB")&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .option("schema", "gold") # Optional - will use default schema "public" if not specified.&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .option("dbtable", "test")&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;nbsp; .load()&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;SPAN&gt;net.snowflake.client.jdbc.SnowflakeSQLException: SQL compilation error:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kaviprakash_S_0-1717986833387.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8163i8AF10440CCFCF080/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Kaviprakash_S_0-1717986833387.png" alt="Kaviprakash_S_0-1717986833387.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Jun 2024 02:34:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72183#M34512</guid>
      <dc:creator>Kaviprakash_S</dc:creator>
      <dc:date>2024-06-10T02:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL compilation error while connecting to snowflake from Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72206#M34518</link>
      <description>&lt;P&gt;Can you try the below code snippet? And share the stacktrace if the issue persists.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 08:55:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72206#M34518</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2024-06-10T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL compilation error while connecting to snowflake from Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72247#M34528</link>
      <description>&lt;P&gt;I don't think adding the "\" will work in this case. Infact its not required in this dataframe operation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 16:25:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72247#M34528</guid>
      <dc:creator>Kaviprakash_S</dc:creator>
      <dc:date>2024-06-10T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL compilation error while connecting to snowflake from Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72438#M34566</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;Could you please help with this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 20:16:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-compilation-error-while-connecting-to-snowflake-from/m-p/72438#M34566</guid>
      <dc:creator>Kaviprakash_S</dc:creator>
      <dc:date>2024-06-11T20:16:44Z</dc:date>
    </item>
  </channel>
</rss>

