Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2023 03:21 AM
@Vijay Kumar
- Check your schema of the table using DESCRIBE TABLE and the dataframe you loaded using df.printSchema() and compare which column has a mismatch. You need to see if your custom schema is matching the table schema.
- MergeSchema will support only the schemas that it can typecast.
- If you want to completely recreate the table schema with the ones of dataframes, you can use overwriteSchema option.
Please share your code so that we can look and help you.