<?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: issue in loading the json files in same container with different schemas in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/issue-in-loading-the-json-files-in-same-container-with-different/m-p/63903#M32394</link>
    <description>&lt;P&gt;Short answer is no. A&amp;nbsp;single Spark AutoLoader typically cannot handle JSON files in a container with two different schemas by default..&amp;nbsp;&lt;SPAN&gt;AutoLoader relies on &lt;STRONG&gt;schema inference&lt;/STRONG&gt; to determine the data structure. It analyses a sample of data from files assumed to have a consistent schema.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If files have different schemas ,&amp;nbsp; AutoLoader's inferred schema would be inaccurate. This leads to errors when processing files with structures that dont match the inferred schema.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Mar 2024 16:07:26 GMT</pubDate>
    <dc:creator>MichTalebzadeh</dc:creator>
    <dc:date>2024-03-16T16:07:26Z</dc:date>
    <item>
      <title>issue in loading the json files in same container with different schemas</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-in-loading-the-json-files-in-same-container-with-different/m-p/63901#M32393</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Could you tell whether this scenario will work or not&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Scenario : i have a container which is having two different json files with diff schemas which will be coming in a streaming manner , i am using an auto loader here to load the files incrementally , can one autoloader the json files in the container which is having two diff schemas ? i've already tried with one file and one schema and its working , but i'm struck here while doing it for two types of json files. for loading two json files , i have stored the schema in the adls gen2 container and called it in my notebook ,but it didnt help me&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 14:44:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-in-loading-the-json-files-in-same-container-with-different/m-p/63901#M32393</guid>
      <dc:creator>kickbuttowski</dc:creator>
      <dc:date>2024-03-16T14:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: issue in loading the json files in same container with different schemas</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-in-loading-the-json-files-in-same-container-with-different/m-p/63903#M32394</link>
      <description>&lt;P&gt;Short answer is no. A&amp;nbsp;single Spark AutoLoader typically cannot handle JSON files in a container with two different schemas by default..&amp;nbsp;&lt;SPAN&gt;AutoLoader relies on &lt;STRONG&gt;schema inference&lt;/STRONG&gt; to determine the data structure. It analyses a sample of data from files assumed to have a consistent schema.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If files have different schemas ,&amp;nbsp; AutoLoader's inferred schema would be inaccurate. This leads to errors when processing files with structures that dont match the inferred schema.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 16:07:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-in-loading-the-json-files-in-same-container-with-different/m-p/63903#M32394</guid>
      <dc:creator>MichTalebzadeh</dc:creator>
      <dc:date>2024-03-16T16:07:26Z</dc:date>
    </item>
  </channel>
</rss>

