This is an automated email from the ASF dual-hosted git repository.
wombatukun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 41816e30041 [MINOR] fixed table type option in ITTestHoodieDataSource
(#12243)
41816e30041 is described below
commit 41816e30041b82da7505c8c18288cf4f5df4e00a
Author: Vova Kolmakov <[email protected]>
AuthorDate: Wed Nov 13 13:57:02 2024 +0700
[MINOR] fixed table type option in ITTestHoodieDataSource (#12243)
Co-authored-by: Vova Kolmakov <[email protected]>
---
.../org/apache/hudi/examples/quickstart/HoodieFlinkQuickstart.java | 2 --
.../src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git
a/hudi-examples/hudi-examples-flink/src/main/java/org/apache/hudi/examples/quickstart/HoodieFlinkQuickstart.java
b/hudi-examples/hudi-examples-flink/src/main/java/org/apache/hudi/examples/quickstart/HoodieFlinkQuickstart.java
index dca783bffc9..6226074f63e 100644
---
a/hudi-examples/hudi-examples-flink/src/main/java/org/apache/hudi/examples/quickstart/HoodieFlinkQuickstart.java
+++
b/hudi-examples/hudi-examples-flink/src/main/java/org/apache/hudi/examples/quickstart/HoodieFlinkQuickstart.java
@@ -25,7 +25,6 @@ import
org.apache.hudi.examples.quickstart.factory.CollectSinkTableFactory;
import org.apache.hudi.examples.quickstart.utils.QuickstartConfigurations;
import org.apache.flink.configuration.Configuration;
-import org.apache.flink.configuration.JobManagerOptions;
import org.apache.flink.core.execution.JobClient;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.EnvironmentSettings;
@@ -42,7 +41,6 @@ import
org.apache.flink.table.catalog.exceptions.TableNotExistException;
import org.apache.flink.types.Row;
import org.jetbrains.annotations.NotNull;
-import java.time.Duration;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.ExecutionException;
diff --git
a/hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java
b/hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java
index eacb0b5e8a5..b2bf266129e 100644
---
a/hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java
+++
b/hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java
@@ -700,7 +700,7 @@ public class ITTestHoodieDataSource {
TableEnvironment tableEnv = batchTableEnv;
String hoodieTableDDL = sql("t1")
.option(FlinkOptions.PATH, tempFile.getAbsolutePath())
- .option(FlinkOptions.TABLE_NAME, tableType.name())
+ .option(FlinkOptions.TABLE_TYPE, tableType)
.option("hoodie.parquet.small.file.limit", "0") // invalidate the
small file strategy
.option("hoodie.parquet.max.file.size", "0")
.noPartition()
@@ -726,7 +726,7 @@ public class ITTestHoodieDataSource {
TableEnvironment tableEnv = batchTableEnv;
String hoodieTableDDL = sql("t1")
.option(FlinkOptions.PATH, tempFile.getAbsolutePath())
- .option(FlinkOptions.TABLE_NAME, tableType)
+ .option(FlinkOptions.TABLE_TYPE, tableType)
.option(FlinkOptions.HIVE_STYLE_PARTITIONING, hiveStylePartitioning)
.end();
tableEnv.executeSql(hoodieTableDDL);