1
0

[HUDI-2789] Flink batch upsert for non partitioned table does not work (#4028)

This commit is contained in:
Danny Chan
2021-11-18 13:59:03 +08:00
committed by GitHub
parent 2d3f2a3275
commit 71a2ae0fd6
4 changed files with 25 additions and 11 deletions

View File

@@ -424,6 +424,8 @@ public class HoodieDataSourceITCase extends AbstractTestBase {
String hoodieTableDDL = sql("t1")
.option(FlinkOptions.PATH, tempFile.getAbsolutePath())
.option(FlinkOptions.TABLE_NAME, tableType.name())
.option("hoodie.parquet.small.file.limit", "0") // invalidate the small file strategy
.option("hoodie.parquet.max.file.size", "0")
.noPartition()
.end();
tableEnv.executeSql(hoodieTableDDL);

View File

@@ -247,6 +247,11 @@ public class TestConfigurations {
return this;
}
public Sql option(String key, Object val) {
this.options.put(key, val.toString());
return this;
}
public Sql options(Map<String, String> options) {
this.options.putAll(options);
return this;