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

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

                Author: ASF GitHub Bot
            Created on: 31/Mar/22 01:04
            Start Date: 31/Mar/22 01:04
    Worklog Time Spent: 10m 
      Work Description: amuletxheart commented on a change in pull request 
#15485:
URL: https://github.com/apache/beam/pull/15485#discussion_r839085893



##########
File path: 
sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIOWriteTest.java
##########
@@ -2320,6 +2322,46 @@ public void testWriteToTableDecorator() throws Exception 
{
     p.run();
   }
 
+  @Test
+  public void testWriteWithAllowTruncatedTimestamps() throws IOException, 
InterruptedException {
+    if (useStorageApi) {
+      // TODO: to support storage API, changes have to be made to
+      // org.apache.beam.sdk.io.gcp.bigquery.BeamRowToStorageApiProto
+      return;

Review comment:
       @TheNeuralBit FYI this is the error that the test cases with 
`useStorageApi = true` fails with:
   
   `Caused by: java.lang.RuntimeException: Unsupported logical type LOGICAL_TYPE
        at 
org.apache.beam.sdk.io.gcp.bigquery.BeamRowToStorageApiProto.fieldDescriptorFromBeamField(BeamRowToStorageApiProto.java:224)
        at 
org.apache.beam.sdk.io.gcp.bigquery.BeamRowToStorageApiProto.descriptorSchemaFromBeamSchema(BeamRowToStorageApiProto.java:181)
        at 
org.apache.beam.sdk.io.gcp.bigquery.BeamRowToStorageApiProto.getDescriptorFromSchema(BeamRowToStorageApiProto.java:143)
        at 
org.apache.beam.sdk.io.gcp.bigquery.StorageApiDynamicDestinationsBeamRow$1.lambda$$0(StorageApiDynamicDestinationsBeamRow.java:54)
        at 
org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4876)
        at 
org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3528)
        at 
org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2277)
        at 
org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2154)
        at 
org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2044)`




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 750660)
    Time Spent: 6.5h  (was: 6h 20m)

> Cannot write "google.protobuf.Timestamp" (NanosInstant) to BigQuery through 
> schemas
> -----------------------------------------------------------------------------------
>
>                 Key: BEAM-10655
>                 URL: https://issues.apache.org/jira/browse/BEAM-10655
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-gcp
>            Reporter: Chamikara Madhusanka Jayalath
>            Priority: P3
>              Labels: starter
>          Time Spent: 6.5h
>  Remaining Estimate: 0h
>
> See here for details and instructions for reproducing.
> [https://lists.apache.org/thread.html/r1657ccf41dda3f2d9d082c5ebb006dd2da92863983971ad23485f16e%40%3Cdev.beam.apache.org%3E]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to