zhangyue19921010 commented on code in PR #13365:
URL: https://github.com/apache/hudi/pull/13365#discussion_r2166979297
##########
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/client/functional/TestHoodieClientOnCopyOnWriteStorage.java:
##########
@@ -1017,6 +1017,14 @@ public void testSimpleClustering(boolean
populateMetaFields) throws Exception {
false, SqlQueryEqualityPreCommitValidator.class.getName(),
COUNT_SQL_QUERY_FOR_VALIDATION, "");
}
+ @Test
+ public void testBinaryCopyClustering() throws Exception {
+ String strategy =
"org.apache.hudi.client.clustering.run.strategy.SparkBinaryCopyClusteringExecutionStrategy";
+ HoodieClusteringConfig config = createClusteringBuilder(true,
1).withClusteringExecutionStrategyClass(strategy).build();
+ testInsertAndClustering(config, true, true,
+ false, SqlQueryEqualityPreCommitValidator.class.getName(),
COUNT_SQL_QUERY_FOR_VALIDATION, "");
Review Comment:
Already have records check in `testInsertAndClustering` func when set
complete clustering true
--
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]