You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/07/01 07:52:00 UTC

[jira] [Work logged] (BEAM-12511) JdbcIO.Write.withResults work without statement

     [ https://issues.apache.org/jira/browse/BEAM-12511?focusedWorklogId=617448&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-617448 ]

ASF GitHub Bot logged work on BEAM-12511:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Jul/21 07:51
            Start Date: 01/Jul/21 07:51
    Worklog Time Spent: 10m 
      Work Description: RaphaelSanamyan commented on pull request #15052:
URL: https://github.com/apache/beam/pull/15052#issuecomment-872011874


   Hi @aromanenko-dev , did you have a chance to take a look at this PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 617448)
    Time Spent: 0.5h  (was: 20m)

> 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
>          Time Spent: 0.5h
>  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.3.4#803005)