Github user DT-Priyanka commented on a diff in the pull request:

    
https://github.com/apache/incubator-apex-malhar/pull/186#discussion_r62758000
  
    --- Diff: 
contrib/src/main/java/com/datatorrent/contrib/cassandra/AbstractCassandraInputOperator.java
 ---
    @@ -112,8 +115,15 @@ public void emitTuples()
         String query = queryToRetrieveData();
         logger.debug("select statement: {}", query);
     
    +    SimpleStatement stmt = new SimpleStatement(query);
    +    stmt.setFetchSize(fetchSize);
    --- End diff --
    
    The query is fetched each time "queryToRetrieveData()". In current 
implementation query doesn't change much. But anyone can implement that 
function to change query parameters in each run. In that case we need to create 
statement using the current query. This is abstract class so trying to make 
sure it helps in all known use cases.


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