cloud-fan commented on code in PR #42503:
URL: https://github.com/apache/spark/pull/42503#discussion_r1338266812
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -4341,6 +4341,18 @@ object SQLConf {
.booleanConf
.createWithDefault(false)
+ val LEGACY_AVRO_ALLOW_INCOMPATIBLE_SCHEMA =
+ buildConf("spark.sql.legacy.avro.allowIncompatibleSchema")
+ .internal()
+ .doc("When set to false, if types in Avro are encoded in the same
format, but " +
+ "the type in the Avro schema explicitly says that the data types are
different, " +
+ "reject reading the data type in the format to avoid returning
incorrect results. " +
+ "When set to true, it restores the legacy behavior of allow reading
the data in the" +
+ " format, which may return incorrect results.")
+ .version("3.5.0")
Review Comment:
```suggestion
.version("3.5.1")
```
--
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]