Repository: ambari Updated Branches: refs/heads/trunk 9bf7c6e22 -> 2ab19a6c9
AMBARI-15332. Hive View: Using multiple 'set' commands in query does not set properties properly. (dipayanb) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2ab19a6c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2ab19a6c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2ab19a6c Branch: refs/heads/trunk Commit: 2ab19a6c9f7cbc7fcbb340229e5824d545e044e0 Parents: 9bf7c6e Author: Dipayan Bhowmick <dipayan.bhowm...@gmail.com> Authored: Tue Mar 15 17:27:37 2016 +0530 Committer: Dipayan Bhowmick <dipayan.bhowm...@gmail.com> Committed: Tue Mar 15 17:27:37 2016 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/ambari/view/hive/client/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/2ab19a6c/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/client/Utils.java ---------------------------------------------------------------------- diff --git a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/client/Utils.java b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/client/Utils.java index c29400d..13f93c3 100644 --- a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/client/Utils.java +++ b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/client/Utils.java @@ -77,7 +77,7 @@ public class Utils { List<String> nonEmptyStrings = new ArrayList<>(); for(String str : strs) { if (!(str == null || str.trim().isEmpty())) { - nonEmptyStrings.add(str); + nonEmptyStrings.add(str.trim()); } } return nonEmptyStrings.toArray(new String[] {});