pacoavila808 commented on code in PR #36895:
URL: https://github.com/apache/beam/pull/36895#discussion_r2558163575
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/firestore/FirestoreStatefulComponentFactory.java:
##########
@@ -94,12 +102,17 @@ FirestoreStub getFirestoreStub(PipelineOptions options) {
builder
.setCredentialsProvider(FixedCredentialsProvider.create(gcpOptions.getGcpCredential()))
.setEndpoint(firestoreOptions.getFirestoreHost());
+ String projectId =
+ configuredProjectId != null
+ ? configuredProjectId
+ : firestoreOptions.getFirestoreProject();
+ if (projectId == null) {
+ projectId = gcpOptions.getProject();
+ }
+ String databaseId =
+ configuredDatabaseId != null ? configuredDatabaseId :
firestoreOptions.getFirestoreDb();
Review Comment:
done
--
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]