Skip to content

endsWith sample throws error #2367

@bhshkh

Description

@bhshkh

void endsWithFunction() throws ExecutionException, InterruptedException {
// [START ends_with]
Pipeline.Snapshot result =
firestore
.pipeline()
.collection("inventory/devices/laptops")
.select(endsWith(field("name"), "16 inch").as("16InLaptops"))
.execute()
.get();
// [END ends_with]
System.out.println(result.getResults());
}

throws error

java.util.concurrent.ExecutionException: com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Invalid property path "16InLaptops". Unquoted property paths must match regex ([a-zA-Z_][a-zA-Z_0-9]*), and quoted property paths must match regex (`(?:[^`\\]|(?:\\.))+`)

Metadata

Metadata

Assignees

Labels

api: firestoreIssues related to the googleapis/java-firestore API.samplesIssues that are directly related to samples.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions