zeruibao commented on code in PR #41052:
URL: https://github.com/apache/spark/pull/41052#discussion_r1213739673
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -64,6 +64,16 @@
}
}
},
+ "AVRO_INCORRECT_TYPE" : {
+ "message" : [
+ "Cannot convert Avro <avroPath> to SQL <sqlPath> because the original
encoded data type is <avroType>, however you're trying to read the field as
<sqlType>, which would lead to an incorrect answer. To allow reading this
field, enable the SQL configuration: `<key>`."
+ ]
+ },
+ "AVRO_LOWER_PRECISION" : {
+ "message" : [
+ "Cannot convert Avro <avroPath> to SQL <sqlPath> because the original
encoded data type is <avroType>, however you're trying to read the field as
<sqlType>, which leads to data being read as null. Please provide a wider
decimal type to get the correct result. To allow reading null to this field,
enable the SQL configuration: `<key>`."
Review Comment:
sg!
--
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]