tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blrun...@apache.org
Subject tajo git commit: TAJO-1147: Simple query doesn't work in Web UI
Date Thu, 26 Mar 2015 08:24:25 GMT
Repository: tajo
Updated Branches:
  refs/heads/branch-0.10.1 e854f830f -> a5350257d


TAJO-1147: Simple query doesn't work in Web UI

Signed-off-by: JaeHwa Jung <blrunner@apache.org>


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

Branch: refs/heads/branch-0.10.1
Commit: a5350257d70366de1297877492111afe89336913
Parents: e854f83
Author: Jongyoung Park <eminency@gmail.com>
Authored: Tue Mar 24 19:05:24 2015 +0900
Committer: JaeHwa Jung <blrunner@apache.org>
Committed: Thu Mar 26 16:44:24 2015 +0900

----------------------------------------------------------------------
 CHANGES                                                         | 5 ++++-
 .../main/java/org/apache/tajo/webapp/QueryExecutorServlet.java  | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/a5350257/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 0abdbd3..2b7b257 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,6 @@
 Tajo Change Log 
 
-Release 0.11.0 - unreleased
+Release 0.10.1 - unreleased
 
   NEW FEATURES
 
@@ -21,6 +21,9 @@ Release 0.11.0 - unreleased
 
   BUG FIXES
 
+    TAJO-1147: Simple query doesn't work in Web UI.
+    (Contributed by Jongyoung Park. Committed by jaehwa)
+
     TAJO-1434: Fix supporting version of Hadoop. 
     (Contributed by Dongjoon Hyun, Committed by jinho)
 

http://git-wip-us.apache.org/repos/asf/tajo/blob/a5350257/tajo-core/src/main/java/org/apache/tajo/webapp/QueryExecutorServlet.java
----------------------------------------------------------------------
diff --git a/tajo-core/src/main/java/org/apache/tajo/webapp/QueryExecutorServlet.java b/tajo-core/src/main/java/org/apache/tajo/webapp/QueryExecutorServlet.java
index da7981c..f265e50 100644
--- a/tajo-core/src/main/java/org/apache/tajo/webapp/QueryExecutorServlet.java
+++ b/tajo-core/src/main/java/org/apache/tajo/webapp/QueryExecutorServlet.java
@@ -483,7 +483,7 @@ public class QueryExecutorServlet extends HttpServlet {
     private void MakeResultText(ResultSet res, TableDesc desc) throws SQLException {
       ResultSetMetaData rsmd = res.getMetaData();
       resultRows = desc.getStats() == null ? 0 : desc.getStats().getNumRows();
-      if (resultRows == 0) {
+      if (resultRows <= 0) {
         resultRows = 1000;
       }
       LOG.info("Tajo Query Result: " + desc.getPath() + "\n");


Mime
View raw message