1
0

[HUDI-2113] Fix integration testing failure caused by sql results out of order (#3204)

This commit is contained in:
Shawy Geng
2021-07-06 15:35:12 +08:00
committed by GitHub
parent f2621da32f
commit 6e24434682
3 changed files with 22 additions and 10 deletions

View File

@@ -24,6 +24,7 @@ import org.apache.hudi.common.util.collection.Pair;
import org.apache.hudi.keygen.SimpleKeyGenerator;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -89,6 +90,17 @@ public class ITTestHoodieDemo extends ITTestBase {
+ " --hoodie-conf hoodie.datasource.hive_sync.database=default "
+ " --hoodie-conf hoodie.datasource.hive_sync.table=%s";
@AfterEach
public void clean() throws Exception {
String hdfsCmd = "hdfs dfs -rm -R ";
List<String> tablePaths = CollectionUtils.createImmutableList(
COW_BASE_PATH, MOR_BASE_PATH, COW_BOOTSTRAPPED_BASE_PATH, MOR_BOOTSTRAPPED_BASE_PATH);
for (String tablePath : tablePaths) {
executeCommandStringInDocker(ADHOC_1_CONTAINER, hdfsCmd + tablePath, true);
}
}
@Test
public void testParquetDemo() throws Exception {
baseFileFormat = HoodieFileFormat.PARQUET;