<?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 read sql file from a Repo to string in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-read-sql-file-from-a-repo-to-string/m-p/19435#M13020</link>
    <description>&lt;P&gt;I checked in my unity_catalog enabled cluster, i am able to access the @repos file to read and display&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 03:27:04 GMT</pubDate>
    <dc:creator>Senthil1</dc:creator>
    <dc:date>2022-12-02T03:27:04Z</dc:date>
    <item>
      <title>How to read sql file from a Repo to string</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-read-sql-file-from-a-repo-to-string/m-p/19433#M13018</link>
      <description>&lt;P&gt;I am trying to read a sql file in the repo to string. I have tried&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;with open("/Workspace/Repos/xx@***.com//file.sql","r") as queryFile:
   queryText = queryFile.read()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And I get following error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[Errno 1] Operation not permitted: '/Workspace/Repos/***@***.com//file.sql'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:58:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-read-sql-file-from-a-repo-to-string/m-p/19433#M13018</guid>
      <dc:creator>pabloaus</dc:creator>
      <dc:date>2022-12-01T08:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to read sql file from a Repo to string</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-read-sql-file-from-a-repo-to-string/m-p/19434#M13019</link>
      <description>&lt;P&gt;Hi @pablous,&lt;/P&gt;&lt;P&gt;Make sure your REPOS is enabled by checking in Admin console and have full read/list privileges to do from workspace.&lt;/P&gt;&lt;P&gt;If all are perfect, then need to check whether there is anything blocks when we enable Unity Catalog, but i didn't feel anything related to this, since you r hitting GIT integrated repo acess, not the METASTORE repo access&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 03:26:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-read-sql-file-from-a-repo-to-string/m-p/19434#M13019</guid>
      <dc:creator>Senthil1</dc:creator>
      <dc:date>2022-12-02T03:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to read sql file from a Repo to string</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-read-sql-file-from-a-repo-to-string/m-p/19435#M13020</link>
      <description>&lt;P&gt;I checked in my unity_catalog enabled cluster, i am able to access the @repos file to read and display&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 03:27:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-read-sql-file-from-a-repo-to-string/m-p/19435#M13020</guid>
      <dc:creator>Senthil1</dc:creator>
      <dc:date>2022-12-02T03:27:04Z</dc:date>
    </item>
  </channel>
</rss>

