Schema evolution issue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2021 03:18 AM
Hi All
I am loading some data using auto loader but am having trouble with Schema evolution.
A new column has been added to the data I am loading and I am getting the following error:
StreamingQueryException: Encountered unknown field(s) during parsing: {"SomeField":{}}
I'm not 100% sure if this error is being thrown by autoloader or by structured streaming, but I am not specifying a schema on the CloudFiles config (Just a schema location) and I am setting the following option on the writeStream
.option("mergeSchema", "true")
Does anyone have any thoughts on this?
Cheers
Mat
Labels: