<?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: The default location of temporary file in Azure Synapse Connector(com.databricks.spark.sqldw) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/the-default-location-of-temporary-file-in-azure-synapse/m-p/71814#M34408</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/72808"&gt;@Chengcheng&lt;/a&gt;&amp;nbsp;, I hope this message finds you well.&lt;/P&gt;
&lt;P&gt;As per the documentation the "tempDir" parameter is a required one and there is no default value for it.&lt;BR /&gt;&lt;STRONG&gt;Databricks Synapse connector options reference&lt;/STRONG&gt;:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/connect/external-systems/synapse-analytics.html#databricks-synapse-connector-options-reference" target="_blank"&gt;https://docs.databricks.com/en/connect/external-systems/synapse-analytics.html#databricks-synapse-connector-options-reference&lt;/A&gt;&lt;BR /&gt;Could you please share some logs of any of these runs where it was possible to be executed without specifying the "tempDir" parameter? &lt;BR /&gt;Maybe we can find some insights from there.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lucas Rocha&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 22:54:14 GMT</pubDate>
    <dc:creator>lucasrocha</dc:creator>
    <dc:date>2024-06-05T22:54:14Z</dc:date>
    <item>
      <title>The default location of temporary file in Azure Synapse Connector(com.databricks.spark.sqldw)</title>
      <link>https://community.databricks.com/t5/data-engineering/the-default-location-of-temporary-file-in-azure-synapse/m-p/36453#M26130</link>
      <description>&lt;P&gt;Hi everone, I'm trying to query data in Azure Synapse Dedicated SQL Pool according to the documentaion using:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"com.databricks.spark.sqldw"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/external-data/synapse-analytics.html#language-python" target="_self"&gt;Query data in Azure Synapse Analytics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It says that a abfss &lt;SPAN&gt;temporary location is needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But I found that even I don't specify the tempDir, the following code also works in DBR above the version 13.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to know whether there has a documentation of this driver/connector, and where it save temporary file when I don't specify one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = (spark.read
  .format("com.databricks.spark.sqldw")
.option("url", url)
# .option("tempDir", "abfss://tempdir@datalakefordatabricks555.dfs.core.windows.net/")
# .option("forwardSparkAzureStorageCredentials", "true")
.option("user", user)
.option("password", password)
.option("encrypt", "true")
.option("trustServerCertificate", "false")
.option("loginTimeout", "30")
.option("query", pushdown_query)
.option("fetchsize", 2000)
.load()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I worry about the following issue if I don't specify any tempDir? (which I don't want to do so if not necessary.)&lt;/P&gt;&lt;P&gt;"The Azure Synapse connector does not delete the temporary files that it creates in the Azure storage container. Databricks recommends that you periodically delete temporary files under the user-supplied tempDir location."&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/external-data/synapse-analytics.html#temporary-data-management" target="_self"&gt;Temporary data management&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 06:48:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-default-location-of-temporary-file-in-azure-synapse/m-p/36453#M26130</guid>
      <dc:creator>Chengcheng</dc:creator>
      <dc:date>2023-06-30T06:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: The default location of temporary file in Azure Synapse Connector(com.databricks.spark.sqldw)</title>
      <link>https://community.databricks.com/t5/data-engineering/the-default-location-of-temporary-file-in-azure-synapse/m-p/71814#M34408</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/72808"&gt;@Chengcheng&lt;/a&gt;&amp;nbsp;, I hope this message finds you well.&lt;/P&gt;
&lt;P&gt;As per the documentation the "tempDir" parameter is a required one and there is no default value for it.&lt;BR /&gt;&lt;STRONG&gt;Databricks Synapse connector options reference&lt;/STRONG&gt;:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/connect/external-systems/synapse-analytics.html#databricks-synapse-connector-options-reference" target="_blank"&gt;https://docs.databricks.com/en/connect/external-systems/synapse-analytics.html#databricks-synapse-connector-options-reference&lt;/A&gt;&lt;BR /&gt;Could you please share some logs of any of these runs where it was possible to be executed without specifying the "tempDir" parameter? &lt;BR /&gt;Maybe we can find some insights from there.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lucas Rocha&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 22:54:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-default-location-of-temporary-file-in-azure-synapse/m-p/71814#M34408</guid>
      <dc:creator>lucasrocha</dc:creator>
      <dc:date>2024-06-05T22:54:14Z</dc:date>
    </item>
  </channel>
</rss>

