[improve](jdbc catalog) Remove all property checks during create (#35194) (#35354)

This commit is contained in:
zy-kkk
2024-05-24 16:12:02 +08:00
committed by GitHub
parent f062506b22
commit cf46ebe31d

View File

@ -24,7 +24,6 @@ import org.apache.doris.catalog.JdbcTable;
import org.apache.doris.catalog.TableIf.TableType;
import org.apache.doris.common.DdlException;
import org.apache.doris.common.FeConstants;
import org.apache.doris.datasource.CatalogMgr;
import org.apache.doris.datasource.CatalogProperty;
import org.apache.doris.datasource.ExternalCatalog;
import org.apache.doris.datasource.InitCatalogLog;
@ -88,10 +87,6 @@ public class JdbcExternalCatalog extends ExternalCatalog {
throw new DdlException("Required property '" + requiredProperty + "' is missing");
}
}
Map<String, String> propertiesIncludeRequired = Maps.newHashMap(catalogProperty.getProperties());
propertiesIncludeRequired.remove(JdbcResource.CHECK_SUM);
propertiesIncludeRequired.remove(CatalogMgr.METADATA_REFRESH_INTERVAL_SEC);
JdbcResource.validateProperties(propertiesIncludeRequired);
JdbcResource.checkBooleanProperty(JdbcResource.ONLY_SPECIFIED_DATABASE, getOnlySpecifiedDatabase());
JdbcResource.checkBooleanProperty(JdbcResource.LOWER_CASE_META_NAMES, getLowerCaseMetaNames());