Skip to content

Commit 1b98de6

Browse files
mikelehenJesseLovelace
authored andcommitted
---
yaml --- r: 15093 b: refs/heads/autosynth-bigquerydatatransfer c: ed7bc85 h: refs/heads/master i: 15091: 11efd03
1 parent e87f984 commit 1b98de6

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b
124124
refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
125125
refs/heads/autosynth-asset: cd8251de8c40e239ad24dcf9ed93ea2708a3eed5
126126
refs/heads/autosynth-automl: cced2f56bbef0499609073edbca6253e1df5e535
127-
refs/heads/autosynth-bigquerydatatransfer: c9f7d7bb12a08f084dd826f27ce997db658dc86b
127+
refs/heads/autosynth-bigquerydatatransfer: ed7bc857a05b34eed6be182d4798a62bf09cd394
128128
refs/heads/autosynth-bigquerystorage: 99aee05df348f39d98b6fb23c292006f1d2a6c28
129129
refs/heads/autosynth-bigtable: fa0d1de9e264d7ecac8a3abc3de7a8364cfaf427
130130
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca

branches/autosynth-bigquerydatatransfer/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ boolean areTimestampsInSnapshotsEnabled() {
398398

399399
/** Returns the name of the Firestore project associated with this client. */
400400
String getDatabaseName() {
401-
return databasePath.toString();
401+
return databasePath.getDatabaseName().toString();
402402
}
403403

404404
/** Returns the underlying RPC client. */

branches/autosynth-bigquerydatatransfer/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/ResourcePath.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ String getPath() {
127127
*/
128128
String getName() {
129129
String path = getPath();
130-
131130
if (path.isEmpty()) {
132-
return getDatabaseName().toString();
131+
return getDatabaseName() + "/documents";
133132
} else {
134133
return getDatabaseName() + "/documents/" + getPath();
135134
}

branches/autosynth-bigquerydatatransfer/google-cloud-clients/google-cloud-firestore/src/test/java/com/google/cloud/firestore/LocalFirestoreHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public static RunQueryRequest query(StructuredQuery... query) {
435435
public static RunQueryRequest query(
436436
@Nullable ByteString transactionId, StructuredQuery... query) {
437437
RunQueryRequest.Builder request = RunQueryRequest.newBuilder();
438-
request.setParent(LocalFirestoreHelper.DATABASE_NAME);
438+
request.setParent(LocalFirestoreHelper.DATABASE_NAME + "/documents");
439439
StructuredQuery.Builder structuredQuery = request.getStructuredQueryBuilder();
440440
structuredQuery.addFrom(
441441
StructuredQuery.CollectionSelector.newBuilder().setCollectionId("coll"));

0 commit comments

Comments
 (0)