You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "michTalebzadeh (via GitHub)" <gi...@apache.org> on 2024/08/21 22:05:46 UTC
Re: [PR] [SPARK-49044][SQL] ValidateExternalType should return child in error [spark]
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org