<?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 make a string column with numeric and alphabet values use as partition? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-make-a-string-column-with-numeric-and-alphabet-values-use/m-p/17668#M11636</link>
    <description>&lt;P&gt;Hi @nafri A​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Did any of the responses help you to resolve your question? if it did, please mark it as best. Otherwise, please let us know if you still need help.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 20:05:12 GMT</pubDate>
    <dc:creator>jose_gonzalez</dc:creator>
    <dc:date>2022-07-29T20:05:12Z</dc:date>
    <item>
      <title>How to make a string column with numeric and alphabet values use as partition?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-make-a-string-column-with-numeric-and-alphabet-values-use/m-p/17665#M11633</link>
      <description>&lt;P&gt;So i have two partitions defined for this delta table, One is year('GJHAR') contains year values, and the other is a string column('BUKS') with around 124 unique values. However, there is one problem with the 2nd partition column('BUKS'), &lt;/P&gt;&lt;P&gt;The values in BUKS are all numeric(e.g. 151, 017,002) except one('XB'). So if i create the partition by first inserting the 'XB' values followed by the other values (numeric ones ) then it gets inserted. But after the 2nd insert, which did not have any 'XB' values in the column('BUKS'), if we insert or merge a bunch of rows with numeric and 'XB' rows it simply fails with the error :&lt;/P&gt;&lt;P&gt;&lt;B&gt;"cannot resolve XB in search condition given columns base"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I dont understand why XB is considered as a column by Spark?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 07:44:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-make-a-string-column-with-numeric-and-alphabet-values-use/m-p/17665#M11633</guid>
      <dc:creator>irfanaziz</dc:creator>
      <dc:date>2022-06-15T07:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a string column with numeric and alphabet values use as partition?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-make-a-string-column-with-numeric-and-alphabet-values-use/m-p/17666#M11634</link>
      <description>&lt;P&gt;@nafri A​&amp;nbsp;, So to make sure I understand correctly: if you partition the table with only numeric data in BUKS, new incoming data cannot be added if it contains a string; but the other way around it does work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could it be that spark has inferred the column as integer/numeric instead of string?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:08:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-make-a-string-column-with-numeric-and-alphabet-values-use/m-p/17666#M11634</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-06-17T09:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a string column with numeric and alphabet values use as partition?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-make-a-string-column-with-numeric-and-alphabet-values-use/m-p/17668#M11636</link>
      <description>&lt;P&gt;Hi @nafri A​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Did any of the responses help you to resolve your question? if it did, please mark it as best. Otherwise, please let us know if you still need help.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 20:05:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-make-a-string-column-with-numeric-and-alphabet-values-use/m-p/17668#M11636</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-07-29T20:05:12Z</dc:date>
    </item>
  </channel>
</rss>

