You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by xu...@apache.org on 2022/04/21 13:37:58 UTC

[hudi] branch rc3-patched-for-test updated: fix tail misuse

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

xushiyan pushed a commit to branch rc3-patched-for-test
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/rc3-patched-for-test by this push:
     new 4e1211ca80 fix tail misuse
4e1211ca80 is described below

commit 4e1211ca8064b5972ec097dd0ec91a9870a7042c
Author: Raymond Xu <27...@users.noreply.github.com>
AuthorDate: Thu Apr 21 21:36:04 2022 +0800

    fix tail misuse
---
 .../execution/datasources/parquet/Spark32HoodieParquetFileFormat.scala  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hudi-spark-datasource/hudi-spark3/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/Spark32HoodieParquetFileFormat.scala b/hudi-spark-datasource/hudi-spark3/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/Spark32HoodieParquetFileFormat.scala
index 5d9d2a737d..3ba5d38623 100644
--- a/hudi-spark-datasource/hudi-spark3/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/Spark32HoodieParquetFileFormat.scala
+++ b/hudi-spark-datasource/hudi-spark3/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/Spark32HoodieParquetFileFormat.scala
@@ -416,7 +416,7 @@ object Spark32HoodieParquetFileFormat {
     //       up by arg types, and have to instead rely on relative order of ctors
     // NOTE: VectorizedParquetRecordReader has 2 ctors and the one we need is 2nd on the array
     //       This is a hacky workaround for the fixed version of Class.
-    val ctor = classOf[VectorizedParquetRecordReader].getConstructors.tail
+    val ctor = classOf[VectorizedParquetRecordReader].getConstructors.last
     ctor.newInstance(args.map(_.asInstanceOf[AnyRef]): _*)
       .asInstanceOf[VectorizedParquetRecordReader]
   }