<?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: Autoloader is not able to infer schema from json in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/autoloader-is-not-able-to-infer-schema-from-json/m-p/110585#M43611</link>
    <description>&lt;P&gt;Yep, my mistake, json file was corrupted.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 11:36:20 GMT</pubDate>
    <dc:creator>p_romm</dc:creator>
    <dc:date>2025-02-19T11:36:20Z</dc:date>
    <item>
      <title>Autoloader is not able to infer schema from json</title>
      <link>https://community.databricks.com/t5/data-engineering/autoloader-is-not-able-to-infer-schema-from-json/m-p/110578#M43609</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I have json files and it contains json array and only one object (payload below), I have set in autoloader inferSchema to true, however autoloader throws:&lt;BR /&gt;&lt;SPAN&gt;"Failed to infer schema for format json from existing files ..."&lt;BR /&gt;I have also check option to set multiLine to true, this doesn't work as well.&amp;nbsp;&lt;BR /&gt;If there is more items in array then autoloader works as expected, is there any setting that allows to infer schema based only on one item in array?&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Payload:&lt;BR /&gt;[&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Time": "2025-02-17T19:53:38",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Published": "2025-02-14T12:00:33",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"Id": "411042",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"Name ": "Test",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"Code": "24411"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;]&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 11:20:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoloader-is-not-able-to-infer-schema-from-json/m-p/110578#M43609</guid>
      <dc:creator>p_romm</dc:creator>
      <dc:date>2025-02-19T11:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader is not able to infer schema from json</title>
      <link>https://community.databricks.com/t5/data-engineering/autoloader-is-not-able-to-infer-schema-from-json/m-p/110585#M43611</link>
      <description>&lt;P&gt;Yep, my mistake, json file was corrupted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 11:36:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoloader-is-not-able-to-infer-schema-from-json/m-p/110585#M43611</guid>
      <dc:creator>p_romm</dc:creator>
      <dc:date>2025-02-19T11:36:20Z</dc:date>
    </item>
  </channel>
</rss>

