<?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: GitHub Actions workflow cannot find the Databricks Unity Catalog and its tables in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/github-actions-workflow-cannot-find-the-databricks-unity-catalog/m-p/113381#M4000</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/154811"&gt;@sagarb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It sounds like a permission issue or setup issue... what is the error you are hitting?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2025 00:11:34 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2025-03-24T00:11:34Z</dc:date>
    <item>
      <title>GitHub Actions workflow cannot find the Databricks Unity Catalog and its tables</title>
      <link>https://community.databricks.com/t5/machine-learning/github-actions-workflow-cannot-find-the-databricks-unity-catalog/m-p/113377#M3999</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Context&lt;/STRONG&gt;: Running the train_model_py.py file stored in Databricks through GitHub Actions. The notebook reads the Unity Catalog tables for pre-processing and works fine when run through the Databricks UI. However, it gives an error when run through GitHub Actions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Setup Details&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Serverless compute on the Free-Tier Databricks workspace. More info is in the Readme.md of this repo.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Resolutions Tried&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Verified that the Host URL and Personal Access Token are as per the Databricks documentation.&lt;/LI&gt;&lt;LI&gt;Verified that Unity Catalog is enabled for the workspace.&lt;/LI&gt;&lt;LI&gt;Verified that Free-Tier serverless compute by default allows Unity Catalog.&lt;/LI&gt;&lt;LI&gt;Explicitly granted permission to my email address and personal tokens.&lt;/LI&gt;&lt;LI&gt;Explicitly set up and enabled Unity Catalog in the notebook.&lt;/LI&gt;&lt;LI&gt;Tried providing the fully qualified table name (catalog.schema.tablename), but it generates a namespace error, i.e., it expects two-part names.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Interesting Observation&lt;/STRONG&gt;:&lt;BR /&gt;Upon further investigation, I found that the GitHub Actions workflow can find the traditional Hive metastore (a.k.a. spark_catalog) tables. This is strange because I do not see this catalog or tables in the Databricks UI.&lt;/P&gt;&lt;P&gt;I want to be able to access the Unity Catalog and its tables when I run the file through the GitHub Actions workflow.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2025 22:08:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/github-actions-workflow-cannot-find-the-databricks-unity-catalog/m-p/113377#M3999</guid>
      <dc:creator>sagarb</dc:creator>
      <dc:date>2025-03-23T22:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: GitHub Actions workflow cannot find the Databricks Unity Catalog and its tables</title>
      <link>https://community.databricks.com/t5/machine-learning/github-actions-workflow-cannot-find-the-databricks-unity-catalog/m-p/113381#M4000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/154811"&gt;@sagarb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It sounds like a permission issue or setup issue... what is the error you are hitting?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 00:11:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/github-actions-workflow-cannot-find-the-databricks-unity-catalog/m-p/113381#M4000</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-03-24T00:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: GitHub Actions workflow cannot find the Databricks Unity Catalog and its tables</title>
      <link>https://community.databricks.com/t5/machine-learning/github-actions-workflow-cannot-find-the-databricks-unity-catalog/m-p/113384#M4001</link>
      <description>&lt;P&gt;Since it doesn't recognize the catalog, it says unexpected word or extra word. 'workspace' is my unity catalog name. See below:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Error:&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;SPAN class=""&gt;"/home/runner/work/Wine_Quality_Prediction_Model/Wine_Quality_Prediction_Model/notebooks/train_model_py.py", line 65, in load_data &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:27" target="_blank" rel="noopener"&gt;26&lt;/A&gt;&lt;SPAN class=""&gt; spark.sql("USE CATALOG workspace;") &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:28" target="_blank" rel="noopener"&gt;27&lt;/A&gt;&lt;SPAN class=""&gt; File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/pyspark/sql/session.py", line 1631, in sql &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:29" target="_blank" rel="noopener"&gt;28&lt;/A&gt;&lt;SPAN class=""&gt; return DataFrame(self._jsparkSession.sql(sqlQuery, litArgs), self) &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:30" target="_blank" rel="noopener"&gt;29&lt;/A&gt;&lt;SPAN class=""&gt; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:31" target="_blank" rel="noopener"&gt;30&lt;/A&gt;&lt;SPAN class=""&gt; File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/py4j/java_gateway.py", line 1322, in __call__ &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:32" target="_blank" rel="noopener"&gt;31&lt;/A&gt;&lt;SPAN class=""&gt; return_value = get_return_value( &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:33" target="_blank" rel="noopener"&gt;32&lt;/A&gt;&lt;SPAN class=""&gt; ^^^^^^^^^^^^^^^^^ &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:34" target="_blank" rel="noopener"&gt;33&lt;/A&gt;&lt;SPAN class=""&gt; File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/pyspark/errors/exceptions/captured.py", line 185, in deco &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:35" target="_blank" rel="noopener"&gt;34&lt;/A&gt;&lt;SPAN class=""&gt; raise converted from None &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:36" target="_blank" rel="noopener"&gt;35&lt;/A&gt;&lt;SPAN class=""&gt;pyspark.errors.exceptions.captured.ParseException: &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:37" target="_blank" rel="noopener"&gt;36&lt;/A&gt;&lt;SPAN class=""&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near 'workspace': extra input 'workspace'.(line 1, pos 12) &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:38" target="_blank" rel="noopener"&gt;37&lt;/A&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:39" target="_blank" rel="noopener"&gt;38&lt;/A&gt;&lt;SPAN class=""&gt;== SQL == &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:40" target="_blank" rel="noopener"&gt;39&lt;/A&gt;&lt;SPAN class=""&gt;USE CATALOG workspace; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;A class="" href="https://github.com/SagarBansal7/Wine_Quality_Prediction_Model/actions/runs/14020048259/job/39250761849#step:8:41" target="_blank" rel="noopener"&gt;40&lt;/A&gt;&lt;SPAN class=""&gt;------------^^^&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;I also printed what catalogs and schemas it can see. This is the output I got in the GitHub Actions output:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;SPAN class=""&gt;spark version: 3.5.5&lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Current Schema:&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN class=""&gt;default &lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Catalogs: ['spark_catalog']&lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 00:45:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/github-actions-workflow-cannot-find-the-databricks-unity-catalog/m-p/113384#M4001</guid>
      <dc:creator>sagarb</dc:creator>
      <dc:date>2025-03-24T00:45:15Z</dc:date>
    </item>
  </channel>
</rss>

