Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;

import java.util.Collections;
import java.util.Set;

import static org.apache.flink.connectors.hive.HiveOptions.STREAMING_SOURCE_ENABLE;
Expand Down Expand Up @@ -79,6 +80,7 @@ public DynamicTableSink createDynamicTableSink(Context context) {
null,
context.getObjectIdentifier(),
context.getCatalogTable(),
Collections.emptyMap(),
context.getConfiguration(),
context.getClassLoader(),
context.isTemporary());
Expand Down Expand Up @@ -114,6 +116,7 @@ public DynamicTableSource createDynamicTableSource(Context context) {
null,
context.getObjectIdentifier(),
context.getCatalogTable(),
Collections.emptyMap(),
context.getConfiguration(),
context.getClassLoader(),
context.isTemporary());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.junit.Test;

import java.time.Duration;
import java.util.Collections;

import static org.apache.flink.connector.file.table.FileSystemConnectorOptions.PARTITION_TIME_EXTRACTOR_CLASS;
import static org.apache.flink.connector.file.table.FileSystemConnectorOptions.PARTITION_TIME_EXTRACTOR_KIND;
Expand Down Expand Up @@ -274,6 +275,7 @@ private DynamicTableSource getTableSource(String tableName) throws Exception {
hiveCatalog.getFactory().orElseThrow(IllegalStateException::new),
tableIdentifier,
tableEnvInternal.getCatalogManager().resolveCatalogTable(catalogTable),
Collections.emptyMap(),
tableEnv.getConfig(),
Thread.currentThread().getContextClassLoader(),
false);
Expand All @@ -290,6 +292,7 @@ private DynamicTableSink getTableSink(String tableName) throws Exception {
hiveCatalog.getFactory().orElseThrow(IllegalStateException::new),
tableIdentifier,
tableEnvInternal.getCatalogManager().resolveCatalogTable(catalogTable),
Collections.emptyMap(),
tableEnv.getConfig(),
Thread.currentThread().getContextClassLoader(),
false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

Expand Down Expand Up @@ -436,6 +437,7 @@ private FileSystemLookupFunction<HiveTablePartition> getLookupFunction(String ta
tableEnvInternal
.getCatalogManager()
.resolveCatalogTable(catalogTable),
Collections.emptyMap(),
tableEnv.getConfig(),
Thread.currentThread().getContextClassLoader(),
false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ void testHiveTable() throws Exception {
catalog.getFactory().orElseThrow(IllegalStateException::new),
ObjectIdentifier.of("mycatalog", "mydb", "mytable"),
new ResolvedCatalogTable(table, schema),
Collections.emptyMap(),
new Configuration(),
Thread.currentThread().getContextClassLoader(),
false);
Expand All @@ -154,6 +155,7 @@ void testHiveTable() throws Exception {
catalog.getFactory().orElseThrow(IllegalStateException::new),
ObjectIdentifier.of("mycatalog", "mydb", "mytable"),
new ResolvedCatalogTable(table, schema),
Collections.emptyMap(),
new Configuration(),
Thread.currentThread().getContextClassLoader(),
false);
Expand Down