SandishKumarHN commented on code in PR #38344: URL: https://github.com/apache/spark/pull/38344#discussion_r1007058916
########## connector/protobuf/src/main/scala/org/apache/spark/sql/protobuf/ProtobufDataToCatalyst.scala: ########## @@ -98,13 +92,9 @@ private[protobuf] case class ProtobufDataToCatalyst( case PermissiveMode => nullResultRow case FailFastMode => - throw new SparkException( - "Malformed records are detected in record parsing. " + - s"Current parse Mode: ${FailFastMode.name}. To process malformed records as null " + - "result, try setting the option 'mode' as 'PERMISSIVE'.", - e) + throw QueryCompilationErrors.malformedRecordsDetectedInRecordParsingError(e) case _ => - throw new AnalysisException(unacceptableModeMessage(parseMode.name)) + throw QueryCompilationErrors.parseModeUnsupportedError("from_protobuf", parseMode) Review Comment: @MaxGekk fixed. -- 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