Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 06:39 AM
i was facing similar issue in loading json files through autoloader for delta live tables.
Was able to fix with this option
.option("cloudFiles.inferColumnTypes", "True")
From the docs "For formats that don’t encode data types (JSON and CSV), Auto Loader infers all columns as strings (including nested fields in JSON files)."
https://docs.databricks.com/ingestion/auto-loader/schema.html#