This is an automated email from the ASF dual-hosted git repository.

vhs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new 19c4cc9c3166 fix: Use explicit Throwable type in AvroConversionUtils 
catch clause (#18342)
19c4cc9c3166 is described below

commit 19c4cc9c31666d75a87d5ff472ffec5fad26035f
Author: Y Ethan Guo <[email protected]>
AuthorDate: Wed Mar 18 23:17:42 2026 -0700

    fix: Use explicit Throwable type in AvroConversionUtils catch clause 
(#18342)
---
 .../src/main/scala/org/apache/hudi/AvroConversionUtils.scala            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionUtils.scala
 
b/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionUtils.scala
index 5a07d6b557c4..bd2d4f0938cd 100644
--- 
a/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionUtils.scala
+++ 
b/hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionUtils.scala
@@ -67,7 +67,7 @@ object AvroConversionUtils {
             .asInstanceOf[GenericRecord]
         } catch {
           case e: HoodieSchemaException => throw e
-          case e => throw new SchemaCompatibilityException("Failed to convert 
spark record into avro record", e)
+          case e: Throwable => throw new SchemaCompatibilityException("Failed 
to convert spark record into avro record", e)
         }
       }
     }

Reply via email to