hudi-agent commented on code in PR #19493:
URL: https://github.com/apache/hudi/pull/19493#discussion_r3706094919


##########
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/functional/TestSparkBinaryCopyClusteringAndValidationMeta.java:
##########
@@ -146,6 +149,18 @@ public void testAndValidateClusteringOutputFiles() throws 
IOException {
     client.commit(newCommitTime2, statuses2);
     List<WriteStatus> statusList2 = statuses2.collect();
 
+    Set<String> commitTimeSet = new HashSet();

Review Comment:
   🤖 nit: `new HashSet()` uses a raw type — could you add the diamond (`new 
HashSet<>()`)? Same on the second occurrence a few hundred lines down in 
`testStreamCopyClusteringEndToEnd`.
   
   <sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag 
quality.</i></sub>



##########
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/functional/TestSparkBinaryCopyClusteringAndValidationMeta.java:
##########
@@ -260,6 +268,115 @@ public void testSupportBinaryStreamCopy() throws 
IOException {
     Assertions.assertFalse(strategy.supportBinaryStreamCopy(groups, new 
HashMap<>()));
   }
 
+  @Test
+  public void testSupportStreamCopy() throws IOException {
+    HoodieWriteConfig writeConfig = new HoodieWriteConfig.Builder()
+        .withPath(basePath)
+        .withSchema(TRIP_EXAMPLE_SCHEMA)
+        .withEmbeddedTimelineServerEnabled(false)
+        .build();
+    HoodieSparkEngineContext engineContext = new HoodieSparkEngineContext(jsc);
+    HoodieTable table = HoodieSparkTable.create(writeConfig, engineContext, 
metaClient);
+    SparkStreamCopyClusteringExecutionStrategy strategy =
+        new SparkStreamCopyClusteringExecutionStrategy(table, engineContext, 
writeConfig);
+
+    MessageType legacySchema = new AvroSchemaConverter().convert(AVRO_SCHEMA);
+    Configuration conf = new Configuration();
+    conf.set("parquet.avro.write-old-list-structure", "false");
+    MessageType standardSchema = new 
AvroSchemaConverter(conf).convert(AVRO_SCHEMA);
+
+    BloomFilter simpleBloomFilter = BloomFilterFactory.createBloomFilter(1000, 
0.0001, 10000, SIMPLE.name());
+    BloomFilter dynmicBloomFilter = BloomFilterFactory.createBloomFilter(1000, 
0.0001, 10000, DYNAMIC_V0.name());
+    // differs from the others in both bloom filter type code and list 
structure

Review Comment:
   🤖 nit: `dynmicBloomFilter` looks like a typo — did you mean 
`dynamicBloomFilter`?
   
   <sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag 
quality.</i></sub>



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