<?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 Error while creating delta table with partitions in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-while-creating-delta-table-with-partitions/m-p/50964#M28925</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am unable to create delta table with partitioning option, can someone please correct me what I am missing and help me with updated query&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE OR REPLACE TABLE invoice 
USING DELTA 
PARTITION BY (year(shp_dt), month(shp_dt)) 
LOCATION '/tables/invoice' 
AS
SELECT
  *,
  current_timestamp() as adls_load_timestamp
FROM
  hive_metastore.invoice_edw 
WHERE 
  shp_dt between '2023-01-01' and '2023-12-31';
​

Error in SQL statement: ParseException: 
[PARSE_SYNTAX_ERROR] Syntax error at or near 'PARTITION'.(line 2, pos 55)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Sun, 12 Nov 2023 09:38:49 GMT</pubDate>
    <dc:creator>Faisal</dc:creator>
    <dc:date>2023-11-12T09:38:49Z</dc:date>
    <item>
      <title>Error while creating delta table with partitions</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-creating-delta-table-with-partitions/m-p/50964#M28925</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am unable to create delta table with partitioning option, can someone please correct me what I am missing and help me with updated query&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE OR REPLACE TABLE invoice 
USING DELTA 
PARTITION BY (year(shp_dt), month(shp_dt)) 
LOCATION '/tables/invoice' 
AS
SELECT
  *,
  current_timestamp() as adls_load_timestamp
FROM
  hive_metastore.invoice_edw 
WHERE 
  shp_dt between '2023-01-01' and '2023-12-31';
​

Error in SQL statement: ParseException: 
[PARSE_SYNTAX_ERROR] Syntax error at or near 'PARTITION'.(line 2, pos 55)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 12 Nov 2023 09:38:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-creating-delta-table-with-partitions/m-p/50964#M28925</guid>
      <dc:creator>Faisal</dc:creator>
      <dc:date>2023-11-12T09:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating delta table with partitions</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-creating-delta-table-with-partitions/m-p/51001#M28930</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PARTITION -&amp;gt; PARTITION&lt;STRONG&gt;ED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 20:27:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-creating-delta-table-with-partitions/m-p/51001#M28930</guid>
      <dc:creator>Emil_Kaminski</dc:creator>
      <dc:date>2023-11-12T20:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating delta table with partitions</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-creating-delta-table-with-partitions/m-p/53716#M29865</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;Hi. Is that not exactly what I suggested before? Sorry for stupid questions, but I am learning rules or earning kudos and getting solutions approved, therefore suggestions from your end would be appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 22:36:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-creating-delta-table-with-partitions/m-p/53716#M29865</guid>
      <dc:creator>Emil_Kaminski</dc:creator>
      <dc:date>2023-11-23T22:36:18Z</dc:date>
    </item>
  </channel>
</rss>

