[ 
https://issues.apache.org/jira/browse/BEAM-12511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anonymous updated BEAM-12511:
-----------------------------
    Status: Triage Needed  (was: Resolved)

> JdbcIO.Write.withResults work without statement
> -----------------------------------------------
>
>                 Key: BEAM-12511
>                 URL: https://issues.apache.org/jira/browse/BEAM-12511
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-jdbc
>            Reporter: Sanamyan Raphael
>            Assignee: Sanamyan Raphael
>            Priority: P2
>             Fix For: 2.32.0
>
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> JdbcIO.Write can work without statement and preparedStatementSetter in all 
> case except using "Write.withResults". e.g.
> {code:java}
>       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();
> {code}
> Need to add ability to use "Write.withResults" without statement and 
> preparedStatementSetter.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to