<?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: Creating a delta table Mismatch Input Error in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34154#M24932</link>
    <description>&lt;P&gt;can you try putting a semicolon (;) at the end of the drop table statement?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 10:17:39 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2021-12-01T10:17:39Z</dc:date>
    <item>
      <title>Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34152#M24930</link>
      <description>&lt;P&gt;I am trying to create a delta table for streaming data, but I am getting the following error; Error in SQL statement: ParseException: &lt;/P&gt;&lt;P&gt;mismatched input 'CREATE' expecting {&amp;lt;EOF&amp;gt;, ';'}(line 2, pos 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My statement is as follows;&lt;/P&gt;&lt;P&gt;%sql&lt;/P&gt;&lt;P&gt;DROP TABLE IF EXISTS table1 &lt;/P&gt;&lt;P&gt;CREATE TABLE&amp;nbsp;table1 (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;col_1 STRING,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;col_2 STRING,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;col_date_1 DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;col_dat_2 DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;col_3 Double,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;col_4 Double,&lt;/P&gt;&lt;P&gt;) USING DELTA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why I am getting this error. &lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 03:09:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34152#M24930</guid>
      <dc:creator>Brose</dc:creator>
      <dc:date>2021-12-01T03:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34154#M24932</link>
      <description>&lt;P&gt;can you try putting a semicolon (;) at the end of the drop table statement?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 10:17:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34154#M24932</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-12-01T10:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34155#M24933</link>
      <description>&lt;P&gt;I did that but still getting the same error.&lt;/P&gt;&lt;P&gt;Thanks @werners&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 16:24:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34155#M24933</guid>
      <dc:creator>Brose</dc:creator>
      <dc:date>2021-12-01T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34156#M24934</link>
      <description>&lt;P&gt;can you try with CREATE OR REPLACE table1 (instead of drop and create)?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 16:44:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34156#M24934</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-12-01T16:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34157#M24935</link>
      <description>&lt;P&gt;Thanks again @werners, I tried that but still getting the same error&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 16:50:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34157#M24935</guid>
      <dc:creator>Brose</dc:creator>
      <dc:date>2021-12-01T16:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34158#M24936</link>
      <description>&lt;P&gt;strange,&lt;/P&gt;&lt;P&gt;can you try to execute both statements in separated cells?&lt;/P&gt;&lt;P&gt;Like that you can see where the problem exactly is&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 08:44:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34158#M24936</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-12-03T08:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34159#M24937</link>
      <description>&lt;P&gt;hi @Ambrose Walker​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the link to the docs &lt;A href="https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-ddl-create-table-datasource.html#create-table-using" target="test_blank"&gt;https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-ddl-create-table-datasource.html#create-table-using&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the syntax:&lt;/P&gt;&lt;P&gt;&lt;B&gt;CREATE&lt;/B&gt; &lt;B&gt;TABLE&lt;/B&gt; [ &lt;B&gt;IF&lt;/B&gt; &lt;B&gt;NOT&lt;/B&gt; &lt;B&gt;EXISTS&lt;/B&gt; ] table_identifier&lt;/P&gt;&lt;P&gt;  [ ( col_name1 col_type1 [ &lt;B&gt;COMMENT&lt;/B&gt; col_comment1 ], ... ) ]&lt;/P&gt;&lt;P&gt;  &lt;B&gt;USING&lt;/B&gt; data_source&lt;/P&gt;&lt;P&gt;  [ &lt;B&gt;OPTIONS&lt;/B&gt; ( key1 [ = ] val1, key2 [ = ] val2, ... ) ]&lt;/P&gt;&lt;P&gt;  [ PARTITIONED &lt;B&gt;BY&lt;/B&gt; ( col_name1, col_name2, ... ) ]&lt;/P&gt;&lt;P&gt;  [ CLUSTERED &lt;B&gt;BY&lt;/B&gt; ( col_name3, col_name4, ... )&lt;/P&gt;&lt;P&gt;      [ SORTED &lt;B&gt;BY&lt;/B&gt; ( col_name [ &lt;B&gt;ASC&lt;/B&gt; | &lt;B&gt;DESC&lt;/B&gt; ], ... ) ]&lt;/P&gt;&lt;P&gt;      &lt;B&gt;INTO&lt;/B&gt; num_buckets BUCKETS ]&lt;/P&gt;&lt;P&gt;  [ &lt;B&gt;LOCATION&lt;/B&gt; path ]&lt;/P&gt;&lt;P&gt;  [ &lt;B&gt;COMMENT&lt;/B&gt; table_comment ]&lt;/P&gt;&lt;P&gt;  [ TBLPROPERTIES ( key1 [ = ] val1, key2 [ = ] val2, ... ) ]&lt;/P&gt;&lt;P&gt;  [ &lt;B&gt;AS&lt;/B&gt; select_statement ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 00:45:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34159#M24937</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2021-12-07T00:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34160#M24938</link>
      <description>&lt;P&gt;Thank you @Werner Stinckens I was able to resolve this issue. Your assistance is much appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 01:13:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34160#M24938</guid>
      <dc:creator>Brose</dc:creator>
      <dc:date>2021-12-07T01:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34161#M24939</link>
      <description>&lt;P&gt;Thanks Jose. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 01:13:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34161#M24939</guid>
      <dc:creator>Brose</dc:creator>
      <dc:date>2021-12-07T01:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a delta table Mismatch Input Error</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34162#M24940</link>
      <description>&lt;P&gt;@Ambrose Walker​&amp;nbsp;- If Jose's answer resolved your issue, would you be happy to mark that post as best? That will help others find the solution more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 21:26:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-a-delta-table-mismatch-input-error/m-p/34162#M24940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-07T21:26:39Z</dc:date>
    </item>
  </channel>
</rss>

