Skip to content

Commit

Permalink
[improve](jdbc catalog) Remove all property checks during create (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
zy-kkk authored and seawinde committed May 27, 2024
1 parent db9bd14 commit 7e35521
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
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;
Expand Down Expand Up @@ -88,10 +87,6 @@ public void checkProperties() throws DdlException {
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());
Expand Down

0 comments on commit 7e35521

Please sign in to comment.