[ 
https://issues.apache.org/jira/browse/BEAM-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594131#comment-16594131
 ] 

Stephen Johnston commented on BEAM-4685:
----------------------------------------

[~chamikara] I think this is solvable by leaving off the partitioning info. It 
seems this might be an API issue, not a Beam issue. Regardless of the 
CREATE_DISPOSITION the API performs partitioning validation if it is sent in 
the job information.

> Allow writing to time partitioned tables when CreateDisposition==CREATE_NEVER
> -----------------------------------------------------------------------------
>
>                 Key: BEAM-4685
>                 URL: https://issues.apache.org/jira/browse/BEAM-4685
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-gcp
>            Reporter: Chamikara Jayalath
>            Priority: Major
>
> Writing to time partitioned table fails when CreateDisposition==CREATE_NEVER 
> with error "Table with field based partitioning must have a schema".
> This seems to be due to BigQuery not setting schema for this case.
> [https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/WriteTables.java#L114]
>  



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

Reply via email to