You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2019/06/10 02:53:18 UTC

[GitHub] [hive] daijyc commented on a change in pull request #661: Hive-21833: Ranger Authorization in Hive based on object ownership

daijyc commented on a change in pull request #661: Hive-21833: Ranger Authorization in Hive based on object ownership
URL: https://github.com/apache/hive/pull/661#discussion_r291864726
 
 

 ##########
 File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
 ##########
 @@ -494,7 +494,7 @@ static void prewarm(RawStore rawStore) {
               AggrStats aggrStatsAllButDefaultPartition = null;
               if (!table.getPartitionKeys().isEmpty()) {
                 Deadline.startTimer("getPartitions");
-                partitions = rawStore.getPartitions(catName, dbName, tblName, Integer.MAX_VALUE);
+                partitions = rawStore.getPartitions(catName, dbName, tblName, -1);
 
 Review comment:
   This comment is not for this patch. But I guess there are more users will experience this if they use limit=MAX_VALUE. Maybe we can ask Naveen to treat MAX_VALUE as -1.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org