Github user DT-Priyanka commented on a diff in the pull request:
https://github.com/apache/incubator-apex-malhar/pull/227#discussion_r58836661
--- Diff:
contrib/src/main/java/com/datatorrent/contrib/cassandra/CassandraPOJOOutputOperator.java
---
@@ -102,20 +92,31 @@ public CassandraPOJOOutputOperator()
}
@Override
+ public void beginWindow(long windowId)
+ {
+ super.beginWindow(windowId);
+ recordsProcessed = 0;
+ errorRecords = 0;
+ }
+
+ @Override
public void activate(Context.OperatorContext context)
{
+ // clear if it had anything
+ columnDataTypes.clear();
--- End diff --
It was required as in same test I am first running insert query and then
update, let me see if I can refactor that, anyone in product we won't support
if a query and fieldInfo changes on fly.
---
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.
---