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 07:15:18 GMT
Repository: tajo
Updated Branches:
  refs/heads/master f9346e509 -> a01292f7e


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

Closes #461

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/a01292f7
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/a01292f7
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/a01292f7

Branch: refs/heads/master
Commit: a01292f7e42966451ee333cd6d99ed0eaa21e793
Parents: f9346e5
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:13:16 2015 +0900

----------------------------------------------------------------------
 CHANGES                                                           | 3 +++
 .../main/java/org/apache/tajo/webapp/QueryExecutorServlet.java    | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/a01292f7/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index da522a9..575a389 100644
--- a/CHANGES
+++ b/CHANGES
@@ -44,6 +44,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/a01292f7/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