voonhous commented on code in PR #17969:
URL: https://github.com/apache/hudi/pull/17969#discussion_r2717008859


##########
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/functional/TestBootstrap.java:
##########
@@ -167,10 +171,21 @@ private void reloadInputFormats() {
 
   public HoodieSchema generateNewDataSetAndReturnSchema(long timestamp, int 
numRecords, List<String> partitionPaths,
       String srcPath) throws Exception {
+    return generateNewDataSetAndReturnSchema(timestamp, numRecords, 
partitionPaths, srcPath, true);
+  }
+
+  public HoodieSchema generateNewDataSetAndReturnSchema(long timestamp, int 
numRecords, List<String> partitionPaths,
+      String srcPath, boolean isMakeFieldsNullable) throws Exception {
     boolean isPartitioned = partitionPaths != null && 
!partitionPaths.isEmpty();
     Dataset<Row> df =
         generateTestRawTripDataset(timestamp, 0, numRecords, partitionPaths, 
jsc, sqlContext);
-    df.printSchema();
+
+    if (!isMakeFieldsNullable) {
+      // Convert schema to non-nullable for all fields
+      df = applyNonNullableSchema(df);
+      df.printSchema();

Review Comment:
   Done



-- 
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]

Reply via email to