This is an automated email from the ASF dual-hosted git repository. voonhous pushed a commit to branch release-1.2.1 in repository https://gitbox.apache.org/repos/asf/hudi.git
commit e22eaadd06bf440b784d407f7781e370c7ad5061 Author: voon <[email protected]> AuthorDate: Thu Aug 6 01:28:11 2026 +0800 fix(build): import Spark Metadata/StructField types in TestHoodieSparkLanceWriter The createBlobSchema() helper added by 120d73fcc4db (#19236) uses Metadata, MetadataBuilder and StructField, but the commit did not add their imports: master's copy of this test already carried them from earlier commits, so upstream had nothing to add. release-1.2.1's copy only imported DataTypes and StructType, so the backported helper did not compile ("cannot find symbol: class Metadata"). Add the three org.apache.spark.sql.types imports. This is a context dependency the cherry-pick could not carry, not a conflict-resolution error. --- .../java/org/apache/hudi/io/storage/TestHoodieSparkLanceWriter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/io/storage/TestHoodieSparkLanceWriter.java b/hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/io/storage/TestHoodieSparkLanceWriter.java index 7f245f65ef6d..122834c46870 100644 --- a/hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/io/storage/TestHoodieSparkLanceWriter.java +++ b/hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/io/storage/TestHoodieSparkLanceWriter.java @@ -48,6 +48,9 @@ import org.apache.arrow.vector.ipc.ArrowReader; import org.apache.spark.sql.catalyst.InternalRow; import org.apache.spark.sql.catalyst.expressions.GenericInternalRow; import org.apache.spark.sql.types.DataTypes; +import org.apache.spark.sql.types.Metadata; +import org.apache.spark.sql.types.MetadataBuilder; +import org.apache.spark.sql.types.StructField; import org.apache.spark.sql.types.StructType; import org.apache.spark.unsafe.types.UTF8String; import org.junit.jupiter.api.AfterEach;
