Details
-
Improvement
-
Status: Triage Needed
-
P2
-
Resolution: Fixed
-
None
-
None
Description
JdbcIO.Write can work without statement and preparedStatementSetter in all case except using "Write.withResults". e.g.
PCollection<Row> dataCollection = pipeline.apply(Create.of(data));
PCollection<Void> rowsWritten =
dataCollection.apply(
JdbcIO.<Row>write()
.withDataSourceConfiguration(DATA_SOURCE_CONFIGURATION)
.withBatchSize(10L)
.withTable(firstTableName)
.withResults());
.dataCollection .
.apply(Wait.on(rowsWritten))
.apply(
JdbcIO.<Row>write()
.withDataSourceConfiguration(DATA_SOURCE_CONFIGURATION)
.withBatchSize(10L)
.withTable(secondTableName));
.run();
Need to add ability to use "Write.withResults" without statement and preparedStatementSetter.
Attachments
Issue Links
- links to