MaxGekk commented on code in PR #38344: URL: https://github.com/apache/spark/pull/38344#discussion_r1006747706
########## connector/protobuf/src/main/scala/org/apache/spark/sql/protobuf/ProtobufDataToCatalyst.scala: ########## @@ -71,16 +70,11 @@ private[protobuf] case class ProtobufDataToCatalyst( @transient private lazy val parseMode: ParseMode = { val mode = protobufOptions.parseMode if (mode != PermissiveMode && mode != FailFastMode) { - throw new AnalysisException(unacceptableModeMessage(mode.name)) + throw QueryCompilationErrors.parseModeUnsupportedError("from_protobuf", mode) Review Comment: Use `prettyName` instead of "from_protobuf", please. -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org