<?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: How to query a table with backslashes in the name. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-query-a-table-with-backslashes-in-the-name/m-p/7738#M3514</link>
    <description>&lt;P&gt;Your answer was close but still had the error. This is what we found to work in our snowflake query from a data bricks data frame:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.option("query", "select * from Database.schema.\"Table_/Name_/V\"") \&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was because the query was already inside quotes.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 15:16:34 GMT</pubDate>
    <dc:creator>Dale_Ware</dc:creator>
    <dc:date>2023-03-15T15:16:34Z</dc:date>
    <item>
      <title>How to query a table with backslashes in the name.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-query-a-table-with-backslashes-in-the-name/m-p/7736#M3512</link>
      <description>&lt;P&gt;I am trying to query a snowflake table from a databricks data frame similar to the following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql_query = "select * from Database.Schema.Table_/Name_/V"&lt;/P&gt;&lt;P&gt;sqlContext.sql(f"{sql_query}" )&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I get an error like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ParseException: &lt;/P&gt;&lt;P&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near '/'(line 1, pos 36)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;== SQL ==&lt;/P&gt;&lt;P&gt;select * from Database.Schema.Table_/Name_/V&lt;/P&gt;&lt;P&gt;------------------------------------^^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can escape those / characters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 18:31:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-query-a-table-with-backslashes-in-the-name/m-p/7736#M3512</guid>
      <dc:creator>Dale_Ware</dc:creator>
      <dc:date>2023-03-14T18:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a table with backslashes in the name.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-query-a-table-with-backslashes-in-the-name/m-p/7737#M3513</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Double Quotes to get the plan. Using quotes it is important to write the table names in capital letters.&lt;/P&gt;&lt;P&gt;SELECT * FROM "/TABLE/NAME"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 04:20:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-query-a-table-with-backslashes-in-the-name/m-p/7737#M3513</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2023-03-15T04:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a table with backslashes in the name.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-query-a-table-with-backslashes-in-the-name/m-p/7738#M3514</link>
      <description>&lt;P&gt;Your answer was close but still had the error. This is what we found to work in our snowflake query from a data bricks data frame:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.option("query", "select * from Database.schema.\"Table_/Name_/V\"") \&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was because the query was already inside quotes.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 15:16:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-query-a-table-with-backslashes-in-the-name/m-p/7738#M3514</guid>
      <dc:creator>Dale_Ware</dc:creator>
      <dc:date>2023-03-15T15:16:34Z</dc:date>
    </item>
  </channel>
</rss>

