brkyvz commented on code in PR #38113:
URL: https://github.com/apache/spark/pull/38113#discussion_r989297420
##########
connector/avro/src/main/scala/org/apache/spark/sql/avro/AvroUtils.scala:
##########
@@ -50,8 +50,8 @@ private[sql] object AvroUtils extends Logging {
val conf = spark.sessionState.newHadoopConfWithOptions(options)
val parsedOptions = new AvroOptions(options, conf)
- if (parsedOptions.parameters.contains(ignoreExtensionKey)) {
- logWarning(s"Option $ignoreExtensionKey is deprecated. Please use the " +
+ if (parsedOptions.parameters.contains(IGNORE_EXTENSION_KEY.toString)) {
Review Comment:
this is what I don't like about enums. You need to go and call `toString`
everywhere
--
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]