<?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 upload file/table to delta table using CLI in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/upload-file-table-to-delta-table-using-cli/m-p/68882#M33763</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using CLI to transfer local files to Databricks Volume. At the end of my upload, I want to create a meta table (storing file name, location, and some other information) and have it as a table on databricks Volume. I am not sure how to create a table using CLI. can anyone point me in the right direction.&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2024 15:09:13 GMT</pubDate>
    <dc:creator>pshuk</dc:creator>
    <dc:date>2024-05-13T15:09:13Z</dc:date>
    <item>
      <title>upload file/table to delta table using CLI</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-file-table-to-delta-table-using-cli/m-p/68882#M33763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using CLI to transfer local files to Databricks Volume. At the end of my upload, I want to create a meta table (storing file name, location, and some other information) and have it as a table on databricks Volume. I am not sure how to create a table using CLI. can anyone point me in the right direction.&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 15:09:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-file-table-to-delta-table-using-cli/m-p/68882#M33763</guid>
      <dc:creator>pshuk</dc:creator>
      <dc:date>2024-05-13T15:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: upload file/table to delta table using CLI</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-file-table-to-delta-table-using-cli/m-p/69200#M33853</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/90838"&gt;@pshuk&lt;/a&gt;&amp;nbsp;, Greetings!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We understand that you are looking for a CLI command to create a Table but at this moment Databricks doesn't support CLI command to create the table but you can use&amp;nbsp;&lt;SPAN&gt;SQL Execution API -https://docs.databricks.com/api/workspace/statementexecution/executestatement to run the DDL statements against a SQL warehouse, here is an example:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;POST https://&amp;lt;DATABRICKS INSTANCE&amp;gt;/api/2.0/sql/statements

Body - {
 "warehouse_id": "warehouse-ID",
 "statement": "CREATE TABLE &amp;lt;Catalog Name&amp;gt;&amp;lt;Schema Name&amp;gt;&amp;lt;Table Name&amp;gt;"
}

Authorisation - &amp;lt; PAT Token &amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;Note - While executing this API, the SQL warehouse should be in a running state or else the cmd will go into a PENDING state.&lt;/P&gt;
&lt;P&gt;Please let me know if this helps and leave a like if you find this information useful. Follow-ups are appreciated.&lt;BR /&gt;Kudos&lt;BR /&gt;Ayushi&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 20:08:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-file-table-to-delta-table-using-cli/m-p/69200#M33853</guid>
      <dc:creator>Ayushi_Suthar</dc:creator>
      <dc:date>2024-05-16T20:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: upload file/table to delta table using CLI</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-file-table-to-delta-table-using-cli/m-p/69294#M33889</link>
      <description>&lt;P&gt;Thanks Ayushi. Quick question: How do I put this in python code?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 16:29:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-file-table-to-delta-table-using-cli/m-p/69294#M33889</guid>
      <dc:creator>pshuk</dc:creator>
      <dc:date>2024-05-17T16:29:57Z</dc:date>
    </item>
  </channel>
</rss>

