You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2017/10/16 10:32:49 UTC
hive git commit: HIVE-17798: When replacing the src table names in
BeeLine testing,
the table names shouldn't be changed to lower case (Marta Kuczora,
via Peter Vary)
Repository: hive
Updated Branches:
refs/heads/master 2da8f155d -> da304ef5c
HIVE-17798: When replacing the src table names in BeeLine testing, the table names shouldn't be changed to lower case (Marta Kuczora, via Peter Vary)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/da304ef5
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/da304ef5
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/da304ef5
Branch: refs/heads/master
Commit: da304ef5cf60a84d7fbde13dcc63e5d54899b3a0
Parents: 2da8f15
Author: Peter Vary <pv...@cloudera.com>
Authored: Mon Oct 16 12:32:23 2017 +0200
Committer: Peter Vary <pv...@cloudera.com>
Committed: Mon Oct 16 12:32:23 2017 +0200
----------------------------------------------------------------------
itests/util/src/main/java/org/apache/hive/beeline/QFile.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/da304ef5/itests/util/src/main/java/org/apache/hive/beeline/QFile.java
----------------------------------------------------------------------
diff --git a/itests/util/src/main/java/org/apache/hive/beeline/QFile.java b/itests/util/src/main/java/org/apache/hive/beeline/QFile.java
index 6cb4fb6..88d361c 100644
--- a/itests/util/src/main/java/org/apache/hive/beeline/QFile.java
+++ b/itests/util/src/main/java/org/apache/hive/beeline/QFile.java
@@ -175,8 +175,7 @@ public final class QFile {
*/
private String replaceTableNames(String source) {
for (String table : srcTables) {
- source = source.replaceAll("(?is)(\\s+)" + table + "([\\s;\\n\\)])", "$1default." + table
- + "$2");
+ source = source.replaceAll("(?is)(\\s+)(" + table + ")([\\s;\\n\\),])", "$1default.$2$3");
}
return source;
}