on 02-06-2019 6:55 PM
I'm running HANA Express and have a custom SDI adapter. When I create a table replication task and multiple rows are inserted, only the first row is written to HANA. For simplicity sake I modified the HelloWorld Adapter from github to demonstrate this. I changed the code to insert two rows every 5 seconds:
AdapterCDCRowSet rows = new AdapterCDCRowSet(spec.getHeader(), columns);
for(int i=0;i<2;i++) {
AdapterCDCRow row = rows.newCDCRow(RowType.INSERT);
row.setColumnValue(0, rowcount);
row.setColumnValue(1, "Millis: " + System.currentTimeMillis());
row.setTransactionId(transactionid);
row.setSeqID(sequence);
rowcount++;
}
receiverconnection.sendRowSet(rows);
System.out.println(rows.toString(true));
However, when I run this only the first row is inserted.
I'm attaching the full source code and the debugging output.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.