itholic commented on code in PR #48449:
URL: https://github.com/apache/spark/pull/48449#discussion_r1800379120
##########
connector/avro/src/main/scala/org/apache/spark/sql/avro/AvroDataToCatalyst.scala:
##########
@@ -80,12 +80,9 @@ private[sql] case class AvroDataToCatalyst(
@transient private lazy val parseMode: ParseMode = {
val mode = avroOptions.parseMode
if (mode != PermissiveMode && mode != FailFastMode) {
- throw new AnalysisException(
- errorClass = "_LEGACY_ERROR_TEMP_3085",
- messageParameters = Map(
- "name" -> mode.name,
- "permissiveMode" -> PermissiveMode.name,
- "failFastMode" -> FailFastMode.name))
+ throw QueryCompilationErrors.parseModeUnsupportedError(
+ "from_avro", mode
Review Comment:
Updated, thanks!
--
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]