ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From niti...@apache.org
Subject ambari git commit: AMBARI-20900 : fixed : hive view 2.0 : uploaded table does not contain any data. A semicolon was missing in insert from query (nitirajrathore)
Date Sun, 30 Apr 2017 13:34:52 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 5c58240d8 -> db8db158c


AMBARI-20900 : fixed : hive view 2.0 : uploaded table does not contain any data. A semicolon
was missing in insert from query (nitirajrathore)


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

Branch: refs/heads/branch-2.5
Commit: db8db158c89398e41b8a22c20582120a35107001
Parents: 5c58240
Author: Nitiraj Singh Rathore <nitiraj.rathore@gmail.com>
Authored: Sun Apr 30 19:03:49 2017 +0530
Committer: Nitiraj Singh Rathore <nitiraj.rathore@gmail.com>
Committed: Sun Apr 30 19:04:33 2017 +0530

----------------------------------------------------------------------
 .../hive20/internal/query/generators/InsertFromQueryGenerator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/db8db158/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
index 19d4f06..e761425 100644
--- a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
+++ b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
@@ -47,7 +47,7 @@ public class InsertFromQueryGenerator implements QueryGenerator{
   public Optional<String> getQuery() throws ServiceException {
     StringBuilder insertQuery = new StringBuilder();
     //Dynamic partition strict mode requires at least one static partition column. To turn
this off set hive.exec.dynamic.partition.mode=nonstrict
-    insertQuery.append("set hive.exec.dynamic.partition.mode=nonstrict").append("\n");
+    insertQuery.append("set hive.exec.dynamic.partition.mode=nonstrict;").append("\n");
 
     insertQuery.append(" FROM ").append("`").append(insertFromQueryInput.getFromDatabase()).append("`.`")
         .append(insertFromQueryInput.getFromTable()).append("` tempTable");


Mime
View raw message