googleapis / googleapis/google-cloud-go
spanner/spannertest: support LEAST/GREATEST functions
Open
api: spanner
triage me
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 1.6k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 109
Description
We have a unit test where we would really need to be able to use `LEAST` in a query, but we currently get this back from the spannertest.Server:
```
rpc error: code = Unknown desc = Alias, *ast.CallExpr: unsupported CALL function: LEAST
```
This tracks with these functions not being implemented in https://github.com/googleapis/google-cloud-go/blob/53d7fa2217c3bf70f7810657a4f51d2d37186254/spanner/spannertest/funcs.go#L48-L170.
Contributor guide
Assessment
This issue has not been assessed yet.