Github user hyunsik commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/719#discussion_r38721432
  
    --- Diff: 
tajo-core/src/main/java/org/apache/tajo/master/exec/QueryExecutor.java ---
    @@ -260,6 +260,7 @@ public void execSimpleQuery(QueryContext queryContext, 
Session session, String q
         if (plan.getRootBlock().hasNode(NodeType.LIMIT)) {
           LimitNode limitNode = plan.getRootBlock().getNode(NodeType.LIMIT);
           maxRow = (int) limitNode.getFetchFirstNum();
    +      scanNode.setLimit(maxRow);
    --- End diff --
    
    The main purpose of setLimit is a hint described in the comment. It does 
not guarantee the number of retrieved rows. So, we must use both.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to