You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Jaideep Dhok (JIRA)" <ji...@apache.org> on 2015/01/08 11:06:34 UTC

[jira] [Commented] (LENS-188) ResultFormatter should call InMemoryResult.setFetchSize

    [ https://issues.apache.org/jira/browse/LENS-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14269119#comment-14269119 ] 

Jaideep Dhok commented on LENS-188:
-----------------------------------

Relevant code in ResultFormatter.formatOutput
{code}
            LOG.info("Result formatter for " + queryHandle + " in inmemory result");
            InMemoryResultSet inmemory = (InMemoryResultSet) resultSet;
            while (inmemory.hasNext()) {
              ((InMemoryOutputFormatter) formatter).writeRow(inmemory.next());
            }
{code}

> ResultFormatter should call InMemoryResult.setFetchSize
> -------------------------------------------------------
>
>                 Key: LENS-188
>                 URL: https://issues.apache.org/jira/browse/LENS-188
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: driver-jdbc, server
>            Reporter: Jaideep Dhok
>
> ResultSet formatter iterates over in memory result's all rows and writes them to disk. Fetch size behaviour is highly driver specific. So we should explicitly call setFetchSize on InMemoryResultSet and also allow specific drivers to add their custom settings on the statement before issuing a query.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)