You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ng...@apache.org on 2019/10/30 14:17:25 UTC
[hive] branch master updated: HIVE-22406:TRUNCATE TABLE fails due
MySQL limitations on limit value(Naveen Gangam, reviewed by Sam An)
This is an automated email from the ASF dual-hosted git repository.
ngangam pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 6a154ee HIVE-22406:TRUNCATE TABLE fails due MySQL limitations on limit value(Naveen Gangam, reviewed by Sam An)
6a154ee is described below
commit 6a154ee0d9b92dc4129234eb5661ac6fabc69767
Author: Naveen Gangam <ng...@cloudera.com>
AuthorDate: Wed Oct 30 10:14:35 2019 -0400
HIVE-22406:TRUNCATE TABLE fails due MySQL limitations on limit value(Naveen Gangam, reviewed by Sam An)
---
.../src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
index c68e30c..cfb903a 100644
--- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
+++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
@@ -3023,7 +3023,7 @@ public class HiveMetaStore extends ThriftHiveMetastore {
String validWriteIds, long writeId) throws Exception {
if (partNames == null) {
if (0 != table.getPartitionKeysSize()) {
- for (Partition partition : ms.getPartitions(catName, dbName, tableName, Integer.MAX_VALUE)) {
+ for (Partition partition : ms.getPartitions(catName, dbName, tableName, -1)) {
alterPartitionForTruncate(ms, catName, dbName, tableName, table, partition,
validWriteIds, writeId);
}
@@ -3071,7 +3071,7 @@ public class HiveMetaStore extends ThriftHiveMetastore {
List<Path> locations = new ArrayList<>();
if (partNames == null) {
if (0 != table.getPartitionKeysSize()) {
- for (Partition partition : ms.getPartitions(catName, dbName, tableName, Integer.MAX_VALUE)) {
+ for (Partition partition : ms.getPartitions(catName, dbName, tableName, -1)) {
locations.add(new Path(partition.getSd().getLocation()));
}
} else {