nsivabalan commented on code in PR #13967:
URL: https://github.com/apache/hudi/pull/13967#discussion_r2370697363
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/dml/others/TestMergeIntoTable.scala:
##########
@@ -1688,4 +1688,75 @@ class TestMergeIntoTable extends HoodieSparkSqlTestBase
with ScalaAssertionSuppo
}
}
}
+
+ test("Test partition not at end") {
+ withSQLConf("hoodie.memory.merge.max.size" -> "1",
+ "hoodie.memory.compaction.max.size" -> "1",
+ "hoodie.insert.shuffle.parallelism" -> "1",
+ "hoodie.upsert.shuffle.parallelism" -> "1",
+ "hoodie.bulkinsert.shuffle.parallelism" -> "1") {
Review Comment:
cool. sg
##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/buffer/StreamingFileGroupRecordBufferLoader.java:
##########
@@ -108,4 +108,14 @@ public Pair<HoodieFileGroupRecordBuffer<T>, List<String>>
getRecordBuffer(Hoodie
}
return Pair.of(recordBuffer, Collections.emptyList());
}
+
+ private static <T> Schema getRecordSchema(HoodieReaderContext<T>
readerContext, TypedProperties props) {
+ Option<Pair<String, String>> payloadClasses =
readerContext.getPayloadClasses(props);
+ if (payloadClasses.isPresent() &&
payloadClasses.get().getRight().equals("org.apache.spark.sql.hudi.command.payload.ExpressionPayload"))
{
+ String schemaStr = props.getString("hoodie.payload.record.schema");
Review Comment:
sg
--
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]