Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit f294d5a

Browse files
committed
snippets and fix tests
1 parent d211719 commit f294d5a

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

google-cloud-firestore/src/test/java/com/google/cloud/firestore/it/ITPipelineTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,9 +1022,9 @@ public void testLTrim() throws Exception {
10221022
.addFields(constant(Blob.fromBytes(new byte[] {0x00, 0x01, 0x02, 0x00, 0x00})).as("bytes"))
10231023
.select(
10241024
ltrim("spacedTitle").as("ltrimmedTitle"),
1025-
field("userNameWithQuotes").ltrim("\"").as("userName"),
1025+
field("userNameWithQuotes").ltrimValue("\"").as("userName"),
10261026
field("bytes")
1027-
.ltrim(constant(Blob.fromBytes(new byte[] {0x00})))
1027+
.ltrimValue(constant(Blob.fromBytes(new byte[] {0x00})))
10281028
.as("bytes"))
10291029
.limit(1)
10301030
.execute()
@@ -1052,9 +1052,9 @@ public void testRTrim() throws Exception {
10521052
.addFields(constant(Blob.fromBytes(new byte[] {0x00, 0x01, 0x02, 0x00, 0x00})).as("bytes"))
10531053
.select(
10541054
rtrim("spacedTitle").as("rtrimmedTitle"),
1055-
field("userNameWithQuotes").rtrim("\"").as("userName"),
1055+
field("userNameWithQuotes").rtrimValue("\"").as("userName"),
10561056
field("bytes")
1057-
.rtrim(constant(Blob.fromBytes(new byte[] {0x00})))
1057+
.rtrimValue(constant(Blob.fromBytes(new byte[] {0x00})))
10581058
.as("bytes"))
10591059
.limit(1)
10601060
.execute()

samples/preview-snippets/src/main/java/com/example/firestore/PipelineSnippets.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,6 @@ void strTrimFunction() throws ExecutionException, InterruptedException {
13911391
// [END trim_function]
13921392
System.out.println(result.getResults());
13931393
}
1394-
13951394
void unixMicrosToTimestampFunction() throws ExecutionException, InterruptedException {
13961395
// [START unix_micros_timestamp]
13971396
Pipeline.Snapshot result =

0 commit comments

Comments
 (0)