tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jihoon...@apache.org
Subject [1/8] tajo git commit: TAJO-1634: REST API: fix error when offset is zero.
Date Wed, 24 Jun 2015 02:23:54 GMT
Repository: tajo
Updated Branches:
  refs/heads/index_support f674fa8f0 -> 00a8c658e


TAJO-1634: REST API: fix error when offset is zero.

Closes #597

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

Branch: refs/heads/index_support
Commit: 011de8bab375b01d8c2d07abebb6bf7ca94ae8c0
Parents: dc49049
Author: DaeMyung Kang <charsyam@naver.com>
Authored: Tue Jun 16 06:43:49 2015 +0900
Committer: JaeHwa Jung <blrunner@apache.org>
Committed: Tue Jun 16 06:43:49 2015 +0900

----------------------------------------------------------------------
 CHANGES                                                           | 3 +++
 .../java/org/apache/tajo/ws/rs/resources/QueryResultResource.java | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/011de8ba/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 045f944..57b8baa 100644
--- a/CHANGES
+++ b/CHANGES
@@ -154,6 +154,9 @@ Release 0.11.0 - unreleased
 
   BUG FIXES
 
+    TAJO-1634: REST API: fix error when offset is zero.
+    (Contributed by DaeMyung Kang, Committed by jaehwa)
+
     TAJO-1630: Test failure after TAJO-1130. (jihoon)
 
     TAJO-1623: INSERT INTO with wrong target columns causes NPE. (hyunsik)

http://git-wip-us.apache.org/repos/asf/tajo/blob/011de8ba/tajo-core/src/main/java/org/apache/tajo/ws/rs/resources/QueryResultResource.java
----------------------------------------------------------------------
diff --git a/tajo-core/src/main/java/org/apache/tajo/ws/rs/resources/QueryResultResource.java
b/tajo-core/src/main/java/org/apache/tajo/ws/rs/resources/QueryResultResource.java
index 6d110e5..3384c90 100644
--- a/tajo-core/src/main/java/org/apache/tajo/ws/rs/resources/QueryResultResource.java
+++ b/tajo-core/src/main/java/org/apache/tajo/ws/rs/resources/QueryResultResource.java
@@ -349,7 +349,7 @@ public class QueryResultResource {
     }
 
     private void skipOffsetRow(NonForwardQueryResultScanner queryResultScanner, int offset)
throws IOException {
-      if (offset < 0) {
+      if (offset <= 0) {
         return;
       }
 


Mime
View raw message