michTalebzadeh commented on PR #47522:
URL: https://github.com/apache/spark/pull/47522#issuecomment-2303087669

   When encountering mixed schema rows, the current error message "{actual} is 
not a valid external type for schema of {expected}" lacks sufficient detail to 
identify the problematic column. This ambiguity hinders troubleshooting and 
increases development time.
   
   To enhance error clarity, we propose incorporating the source column name 
into the error message. For example: "Column 'my_column' has an actual type of 
{actual} which is not a valid external type for the expected schema of 
{expected}."
   
   By providing this additional context, developers can more efficiently 
pinpoint and resolve schema mismatches.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to