Skip to content

Commit

Permalink
spannertest: test multi-agg group by
Browse files Browse the repository at this point in the history
  • Loading branch information
petercgrant committed Apr 26, 2021
1 parent f190383 commit 39fc7cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spanner/spannertest/integration_test.go
Expand Up @@ -1192,6 +1192,15 @@ func TestIntegration_ReadsAndQueries(t *testing.T) {
{false, true, int64(6), int64(11), 1.73, 1.91, "Daniel", "Teal'c", int64(5)},
},
},
{
`SELECT Cool, MIN(Tenure), MAX(Tenure), MIN(Height), MAX(Height), MIN(Name), MAX(Name), COUNT(*) FROM Staff GROUP BY Cool ORDER BY Cool`,
nil,
[][]interface{}{
{nil, int64(6), int64(10), 1.73, 1.85, "George", "Jack", int64(2)},
{false, int64(9), int64(11), 1.75, 1.83, "Daniel", "Sam", int64(2)},
{true, int64(8), int64(8), 1.91, 1.91, "Teal'c", "Teal'c", int64(1)},
},
},
}
var failures int
for _, test := range tests {
Expand Down

0 comments on commit 39fc7cb

Please sign in to comment.