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

    https://github.com/apache/tajo/pull/928#discussion_r48938840
  
    --- Diff: 
tajo-core/src/main/java/org/apache/tajo/webapp/QueryExecutorServlet.java ---
    @@ -507,14 +508,20 @@ private void MakeResultText(ResultSet res, TableDesc 
desc) throws SQLException {
             numOfRows = resultRows;
           }
     
    +      int currentResultSize = 0;
           int rowCount = 0;
           while (res.next()) {
    -        if(rowCount > numOfRows) {
    +        if(rowCount > numOfRows || currentResultSize > sizeLimit) {
    --- End diff --
    
    ```numOfRows = (long)((float)(resultRows) * ((float)sizeLimit / (float) 
resultRows));``` on the 506 line looks not necessary. Would you remove it?


---
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