GoogleCloudPlatform / GoogleCloudPlatform/cloud-spanner-emulator

FORCE_INDEX=PRIMARY_KEY not supported by emulator

Open
#214 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
334
Forks
77
Avg merge
8m
Merged PRs (30d)
2

Description

### Reproduce:
Create a query which contains `FROM MyTable@{FORCE_INDEX=PRIMARY_KEY}` statement

### Expected behaviour:
Query is executed (as it is using a regular Spanner instance)

### Actual outcome:
The following error is returned:
`com.google.cloud.spanner.SpannerException, with message: INVALID_ARGUMENT: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: The table does not have a secondary index called PRIMARY_KEY`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.