-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addBatch / executeBatch does not support on cluster
anymore
#1261
Comments
The version 0.4.1 still has this situation, in the package try {
r = executeStatement(builder.toString(), null, null, null);
if (updateResult(parsedStmt, r) != null && asBatch) {
throw SqlExceptionUtils.queryInBatchError(results);
}
...
} catch (Exception e) {
...
if (!continueOnError) {
throw SqlExceptionUtils.batchUpdateError(e, results);
}
log.error("Failed to execute batch insertion of %d records", counter, e);
} finally {
if (asBatch && r != null)
r.close();
}
clearBatch();
} When sql with But I still want to know if this is a bug, or some kind of specification or practice, who can tell me the specific design details? |
Yes it's a bug. The assumption was DDL should have empty response, which is apparently not true when |
@zhicwu Thank you for your prompt reply and looking forward to the v1 release. 🧋🧋 |
without
on cluster test_shard_localhost
-- it works / output: 000The text was updated successfully, but these errors were encountered: