vikramahuja1001 commented on code in PR #4881:
URL: https://github.com/apache/hive/pull/4881#discussion_r1411798662
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/PartitionIterable.java:
##########
@@ -156,6 +158,9 @@ public PartitionIterable(Hive db, Table table, Map<String,
String> partialPartit
*/
public PartitionIterable(Hive db, Table table, Map<String, String>
partialPartitionSpec,
int batchSize, boolean getColStats) throws
HiveException {
+ if (batchSize < 1) {
Review Comment:
Changed the code. Blocking the call here if batch size < 1
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreChecker.java:
##########
@@ -278,7 +278,7 @@ void checkTable(String catName, String dbName, String
tableName, byte[] filterEx
request.setCatName(table.getCatName());
int batchSize = MetastoreConf.getIntVar(conf,
MetastoreConf.ConfVars.BATCH_RETRIEVE_MAX);
if (batchSize > 0) {
- parts = new PartitionIterable(getMsc(), table,
batchSize).withProjectSpec(request);
+ parts = new PartitionIterable(getMsc(), table, batchSize,
conf).withProjectSpec(request);
Review Comment:
removed invalid code here
--
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]