dengzhhu653 commented on code in PR #6347:
URL: https://github.com/apache/hive/pull/6347#discussion_r2887907298
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java:
##########
@@ -199,11 +199,11 @@ public MetaStoreDirectSql(PersistenceManager pm,
Configuration conf, String sche
this.schema = schema;
this.dbType = PersistenceManagerProvider.getDatabaseProduct();
int batchSize = MetastoreConf.getIntVar(conf,
ConfVars.DIRECT_SQL_PARTITION_BATCH_SIZE);
- this.directSqlInsertPart = new DirectSqlInsertPart(pm, dbType, batchSize);
if (batchSize == DETECT_BATCHING) {
batchSize = dbType.needsInBatching() ? 1000 : NO_BATCHING;
}
this.batchSize = batchSize;
+ this.directSqlInsertPart = new DirectSqlInsertPart(pm, dbType, batchSize);
Review Comment:
Thanks for the comment. I add the enforcement check in some other places as
well
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]