Github user DT-Priyanka commented on a diff in the pull request:
https://github.com/apache/incubator-apex-malhar/pull/182#discussion_r55825428
--- Diff:
contrib/src/test/java/com/datatorrent/contrib/cassandra/CassandraOperatorTest.java
---
@@ -333,26 +333,26 @@ public void testCassandraInputOperator()
String query2 = "SELECT * FROM " + KEYSPACE + "." + "%t where
token(%p) > %v;";
inputOperator.setQuery(query2);
+ inputOperator.setStartRow(10);
inputOperator.setup(context);
inputOperator.outputPort.setup(tpc);
inputOperator.activate(context);
- inputOperator.setStartRow(10);
inputOperator.beginWindow(1);
inputOperator.emitTuples();
inputOperator.endWindow();
- Assert.assertEquals("rows from db", 14, sink.collectedTuples.size());
+ Assert.assertEquals("rows from db", 26, sink.collectedTuples.size());
--- End diff --
This depends on hash value of primary key column value, that's why.
---
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.
---