Autoloader is not able to infer schema from json
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2025 03:20 AM
Hi,
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:
"Failed to infer schema for format json from existing files ..."
I have also check option to set multiLine to true, this doesn't work as well.
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?
Payload:
[
{
"Time": "2025-02-17T19:53:38",
"Published": "2025-02-14T12:00:33",
"Id": "411042",
"Name ": "Test",
"Code": "24411"
}
]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2025 03:36 AM
Yep, my mistake, json file was corrupted.

