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

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

                Author: ASF GitHub Bot
            Created on: 13/Feb/19 05:52
            Start Date: 13/Feb/19 05:52
    Worklog Time Spent: 10m 
      Work Description: reuvenlax commented on pull request #7743: [BEAM-6602] 
Preparatory PR for integrating schemas into BigQuery: Push TableRow conversion 
to end of pipeline
URL: https://github.com/apache/beam/pull/7743#discussion_r256256004
 
 

 ##########
 File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StreamingWriteTables.java
 ##########
 @@ -43,59 +45,125 @@
  * <p>This transform assumes that all destination tables already exist by the 
time it sees a write
  * for that table.
  */
-public class StreamingWriteTables
-    extends PTransform<PCollection<KV<TableDestination, TableRow>>, 
WriteResult> {
+public class StreamingWriteTables<ElementT>
+    extends PTransform<PCollection<KV<TableDestination, ElementT>>, 
WriteResult> {
   private BigQueryServices bigQueryServices;
   private InsertRetryPolicy retryPolicy;
   private boolean extendedErrorInfo;
   private static final String FAILED_INSERTS_TAG_ID = "failedInserts";
   private final boolean skipInvalidRows;
   private final boolean ignoreUnknownValues;
+  private final Coder<ElementT> elementCoder;
+  private final SerializableFunction<ElementT, TableRow> toTableRow;
 
   public StreamingWriteTables() {
-    this(new BigQueryServicesImpl(), InsertRetryPolicy.alwaysRetry(), false, 
false, false);
+    this(
+        new BigQueryServicesImpl(),
+        InsertRetryPolicy.alwaysRetry(),
+        false,
+        false,
 
 Review comment:
   done
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

    Worklog Id:     (was: 197937)
    Time Spent: 1.5h  (was: 1h 20m)

> Support schemas in BigQueryIO.Write
> -----------------------------------
>
>                 Key: BEAM-6602
>                 URL: https://issues.apache.org/jira/browse/BEAM-6602
>             Project: Beam
>          Issue Type: Sub-task
>          Components: io-java-gcp
>            Reporter: Reuven Lax
>            Assignee: Reuven Lax
>            Priority: Major
>              Labels: triaged
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to