Skip to content

Commit

Permalink
[flink] create table validate options
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhuoyu committed Aug 7, 2024
1 parent 8972833 commit 4c1d175
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
import org.apache.paimon.data.BinaryRow;
import org.apache.paimon.flink.procedure.ProcedureUtil;
import org.apache.paimon.flink.utils.FlinkCatalogPropertiesUtil;
import org.apache.paimon.format.OrcOptions;
import org.apache.paimon.lookup.RocksDBOptions;
import org.apache.paimon.options.ConfigOption;
import org.apache.paimon.options.Options;
import org.apache.paimon.schema.Schema;
Expand Down Expand Up @@ -341,7 +343,9 @@ private static void validateOptions(Map<String, String> options) {
Stream.of(
CoreOptions.class.getFields(),
FlinkConnectorOptions.class.getFields(),
FlinkCatalogOptions.class.getFields())
FlinkCatalogOptions.class.getFields(),
OrcOptions.class.getFields(),
RocksDBOptions.class.getFields())
.flatMap(Stream::of)
.filter(field -> java.lang.reflect.Modifier.isStatic(field.getModifiers()))
.filter(field -> ConfigOption.class.isAssignableFrom(field.getType()))
Expand All @@ -367,7 +371,6 @@ private static void validateOptions(Map<String, String> options) {
"kafka.topic",
"kafka.transaction.timeout.ms",
"kafka.batch.size",
"rocksdb.compaction.level.target-file-size-base",
"file-index.bloom-filter.columns",
"file-index.bloom-filter.indexc.items",
"a.aa.aaa",
Expand Down

0 comments on commit 4c1d175

Please sign in to comment.