mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Update tests to remove sum column on GroupBy
This commit is contained in:
parent
16b5fbe40b
commit
b5fdc6609a
1 changed files with 17 additions and 17 deletions
|
|
@ -6926,28 +6926,28 @@ func variousQueries(t *testing.T, clusterSize int) {
|
|||
}{
|
||||
{ // 2020 & 2019 All
|
||||
query: `GroupBy(Rows(places_visited, from='2019-01-01T00:00', to='2020-12-31T23:59'))`,
|
||||
csvVerifier: `nairobi,2,0
|
||||
paris,1,0
|
||||
austin,1,0
|
||||
toronto,6,0
|
||||
mombasa,1,0
|
||||
sydney,1,0
|
||||
csvVerifier: `nairobi,2
|
||||
paris,1
|
||||
austin,1
|
||||
toronto,6
|
||||
mombasa,1
|
||||
sydney,1
|
||||
`,
|
||||
},
|
||||
{ // 2019 January only
|
||||
query: `GroupBy(Rows(places_visited, from='2019-01-01T00:00', to='2019-02-01T00:00'))`,
|
||||
csvVerifier: `nairobi,1,0
|
||||
paris,1,0
|
||||
austin,1,0
|
||||
toronto,1,0
|
||||
csvVerifier: `nairobi,1
|
||||
paris,1
|
||||
austin,1
|
||||
toronto,1
|
||||
`,
|
||||
},
|
||||
{ // 2019 All
|
||||
query: `GroupBy(Rows(places_visited, from='2019-01-01T00:00', to='2019-12-31T23:59'))`,
|
||||
csvVerifier: `nairobi,1,0
|
||||
paris,1,0
|
||||
austin,1,0
|
||||
toronto,3,0
|
||||
csvVerifier: `nairobi,1
|
||||
paris,1
|
||||
austin,1
|
||||
toronto,3
|
||||
`,
|
||||
},
|
||||
{ // 2019 All, this excludes userC (who likes pangolin & icecream) from the count.
|
||||
|
|
@ -6956,9 +6956,9 @@ toronto,3,0
|
|||
Rows(places_visited, from='2019-01-01T00:00', to='2019-12-31T23:59'),
|
||||
filter=Not(Intersect(Row(likes='pangolin'), Row(likes='icecream')))
|
||||
)`,
|
||||
csvVerifier: `nairobi,1,0
|
||||
austin,1,0
|
||||
toronto,2,0
|
||||
csvVerifier: `nairobi,1
|
||||
austin,1
|
||||
toronto,2
|
||||
`,
|
||||
},
|
||||
{ // After excluding UserC, this gets the sum of the networth of everyone per cities travelled
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue