I'm getting this exception when executing a copy.
java.sql.SQLException: [Vertica][VJDBC](100023) Unexpected message type: DataRow.
at com.vertica.io.ProtocolStream.readExpectedMessage(Unknown Source) ~[vertica-7.1.1-0.jar:na]
at com.vertica.dataengine.VQueryExecutor.readCopyDataResponse(Unknown Source) ~[vertica-7.1.1-0.jar:na]
at com.vertica.dataengine.VQueryExecutor.handleExecuteResponse(Unknown Source) ~[vertica-7.1.1-0.jar:na]
at com.vertica.dataengine.VQueryExecutor.execute(Unknown Source) ~[vertica-7.1.1-0.jar:na]
at com.vertica.jdbc.VerticaCopyStream.execute(Unknown Source) ~[vertica-7.1.1-0.jar:na]
at com.foo.MyThing.run(MyThing:java:77) ~[classes/:na]
...
The line that's triggering it is the execute() below:
copyStream = new VerticaCopyStream(verticaConnection, copyStatement);
copyStream.start();
copyStream.addStream(new ByteArrayInputStream(bytes));
copyStream.execute();
I've googled for an explanation and remedy. But I haven't found anything anywhere that even mentions "Unexpected message type: DataRow".
Any suggestions?