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

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

                Author: ASF GitHub Bot
            Created on: 06/Feb/19 08:38
            Start Date: 06/Feb/19 08:38
    Worklog Time Spent: 10m 
      Work Description: chamikaramj commented on pull request #7061: 
[BEAM-5191] Support for BigQuery clustering
URL: https://github.com/apache/beam/pull/7061#discussion_r254175894
 
 

 ##########
 File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BatchLoads.java
 ##########
 @@ -292,7 +292,7 @@ private WriteResult 
expandTriggered(PCollection<KV<DestinationT, TableRow>> inpu
         .apply(WithKeys.of((Void) null))
         .setCoder(
             KvCoder.of(
-                VoidCoder.of(), KvCoder.of(TableDestinationCoderV2.of(), 
StringUtf8Coder.of())))
+                VoidCoder.of(), KvCoder.of(TableDestinationCoderV3.of(), 
StringUtf8Coder.of())))
 
 Review comment:
   I'm bit confused by this comment (and probably missing something). Isn't 
this similar to the TableDestinationCoder to TableDestinationCoderV2 change we 
did in following commit to preserve update compatibility ?
   
   
https://github.com/apache/beam/commit/b0e03a33cf0c2c573a2d34d88506e19ebb28c934#diff-b2706c94bc268b2bc2b78820ab23b0fe
 
----------------------------------------------------------------
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:
[email protected]


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

    Worklog Id:     (was: 194980)
    Time Spent: 5h 10m  (was: 5h)

> Add support for writing to BigQuery clustered tables
> ----------------------------------------------------
>
>                 Key: BEAM-5191
>                 URL: https://issues.apache.org/jira/browse/BEAM-5191
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-gcp
>    Affects Versions: 2.6.0
>            Reporter: Robert Sahlin
>            Assignee: Wout Scheepers
>            Priority: Minor
>              Labels: features, newbie
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>
> Google recently added support for clustered tables in BigQuery. It would be 
> useful to set clustering columns the same way as for partitioning. It should 
> support multiple fields (4) for clustering.
> For example:
> [BigQueryIO.Write|https://beam.apache.org/documentation/sdks/javadoc/2.6.0/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.Write.html]<[T|https://beam.apache.org/documentation/sdks/javadoc/2.6.0/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.Write.html]>
>  .withClustering(new Clustering().setField("productId").setType("STRING"))



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

Reply via email to