<?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: bug: add csv data UI: missing leading zero in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13155#M7869</link>
    <description>&lt;P&gt;Hi @lizou​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check again in your .csv file if the value is appended with zeros and stored as a string only, as per the post I believe you are fine to store the number as a string, and I am not facing any issues.&lt;/P&gt;&lt;P&gt;I tried to replicate the same as mentioned below&lt;/P&gt;&lt;P&gt;Created a .csv file with numbers as text with zeros at the start and manually uploaded in UI of the data tab in databricks and read into df , working fine without any issues as shown below, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this answers your query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/888iEADC12C5E08CDBD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture" alt="Capture" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;Happy Learning!!&lt;/P&gt;</description>
    <pubDate>Sat, 07 Jan 2023 17:23:23 GMT</pubDate>
    <dc:creator>Chaitanya_Raju</dc:creator>
    <dc:date>2023-01-07T17:23:23Z</dc:date>
    <item>
      <title>bug: add csv data UI: missing leading zero</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13153#M7867</link>
      <description>&lt;P&gt;use add data UI, add csv manually, even set data type as string, the leading zero will be missing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example csv&lt;/P&gt;&lt;P&gt;val1,val2&lt;/P&gt;&lt;P&gt;0012345, abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after load data, &lt;/P&gt;&lt;P&gt;123,abc is stored in table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/880i7A5A4DF2A082B066/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/882i1DAE1B412EA94CEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 14:58:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13153#M7867</guid>
      <dc:creator>lizou</dc:creator>
      <dc:date>2023-01-07T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: bug: add csv data UI: missing leading zero</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13154#M7868</link>
      <description>&lt;P&gt;Hey @lizo I don't think there is any bug we generally do not count Zeros in front of the number&lt;/P&gt;&lt;P&gt;It's not able to CSV I created a table in the databricks but it is happening the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/894i386799C5FA37CA73/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aviral Bhardwaj&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 15:55:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13154#M7868</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2023-01-07T15:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: bug: add csv data UI: missing leading zero</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13155#M7869</link>
      <description>&lt;P&gt;Hi @lizou​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check again in your .csv file if the value is appended with zeros and stored as a string only, as per the post I believe you are fine to store the number as a string, and I am not facing any issues.&lt;/P&gt;&lt;P&gt;I tried to replicate the same as mentioned below&lt;/P&gt;&lt;P&gt;Created a .csv file with numbers as text with zeros at the start and manually uploaded in UI of the data tab in databricks and read into df , working fine without any issues as shown below, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this answers your query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/888iEADC12C5E08CDBD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture" alt="Capture" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;Happy Learning!!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 17:23:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13155#M7869</guid>
      <dc:creator>Chaitanya_Raju</dc:creator>
      <dc:date>2023-01-07T17:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: bug: add csv data UI: missing leading zero</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13156#M7870</link>
      <description>&lt;P&gt;there are no issues using spark.read in notebooks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue is specific to using Add Data User interface and adding a csv file manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 00:06:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-add-csv-data-ui-missing-leading-zero/m-p/13156#M7870</guid>
      <dc:creator>lizou</dc:creator>
      <dc:date>2023-01-09T00:06:01Z</dc:date>
    </item>
  </channel>
</rss>

