Skip to content

Commit

Permalink
[improve](jdbc catalog) Remove all property checks during create (#35194
Browse files Browse the repository at this point in the history
) (#35353)
  • Loading branch information
zy-kkk authored May 25, 2024
1 parent 54bc272 commit 3375839
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.apache.doris.common.Config;
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 @@ -89,10 +88,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_TABLE_NAMES, getLowerCaseTableNames());
Expand Down

0 comments on commit 3375839

Please sign in to comment.