danielxjd commented on a change in pull request #12106:
URL: https://github.com/apache/beam/pull/12106#discussion_r461174221



##########
File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryServicesImpl.java
##########
@@ -909,6 +927,15 @@ public void deleteDataset(String projectId, String 
datasetId)
           ignoreInsertIds);
     }
 
+    protected GoogleJsonError.ErrorInfo getErrorInfo(IOException e) {
+      if (!(e instanceof GoogleJsonResponseException)) {
+        return null;
+      }
+      GoogleJsonError jsonError = ((GoogleJsonResponseException) 
e).getDetails();
+      GoogleJsonError.ErrorInfo errorInfo = 
Iterables.getFirst(jsonError.getErrors(), null);

Review comment:
       Only return the first element ErrorInfo. This is according to the logic 
and comment of getErrorInfo() from ApiErrorExtractor.




----------------------------------------------------------------
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.

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


Reply via email to