hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject hive git commit: HIVE-17799 : Add Ellipsis For Truncated Query In Hive Lock (Beluga Behr via Ashutosh Chauhan)
Date Fri, 20 Oct 2017 22:30:48 GMT
Repository: hive
Updated Branches:
  refs/heads/master b958c752e -> 9478961a7


HIVE-17799 : Add Ellipsis For Truncated Query In Hive Lock (Beluga Behr via Ashutosh Chauhan)

Signed-off-by: Ashutosh Chauhan <hashutosh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/9478961a
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/9478961a
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/9478961a

Branch: refs/heads/master
Commit: 9478961a7e133671f29aa659b4a9cd11eb3a8e30
Parents: b958c75
Author: BELUGA BEHR <dam6923@gmail.com>
Authored: Fri Oct 20 15:30:14 2017 -0700
Committer: Ashutosh Chauhan <hashutosh@apache.org>
Committed: Fri Oct 20 15:30:14 2017 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/9478961a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java
index eb66c31..d7fd9da 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java
@@ -63,7 +63,7 @@ public class HiveLockObject {
       this.lockTime = StringInternUtils.internIfNotNull(removeDelimiter(lockTime));
       this.lockMode = removeDelimiter(lockMode);
       this.queryStr = StringInternUtils.internIfNotNull(
-          queryStr == null ? null : StringUtils.substring(removeDelimiter(queryStr.trim()),
0,
+          queryStr == null ? null : StringUtils.abbreviate(removeDelimiter(queryStr.trim()),
               conf.getIntVar(HiveConf.ConfVars.HIVE_LOCK_QUERY_STRING_MAX_LENGTH)));
     }
 


Mime
View raw message