mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
Merge pull request #1818 from travisturner/groupby-filter-test
add a test for groupby filter with RangeLTLT
This commit is contained in:
commit
b0d0105e79
1 changed files with 20 additions and 0 deletions
|
|
@ -629,6 +629,26 @@ func TestPQLDeepEquality(t *testing.T) {
|
|||
{Name: "Rows"},
|
||||
},
|
||||
}},
|
||||
{
|
||||
name: "GroupByFilterRangeLTLT",
|
||||
call: "GroupBy(Rows(), filter=Row(4 < a < 9))",
|
||||
exp: &Call{
|
||||
Name: "GroupBy",
|
||||
Args: map[string]interface{}{
|
||||
"filter": &Call{
|
||||
Name: "Row",
|
||||
Args: map[string]interface{}{
|
||||
"a": &Condition{
|
||||
Op: BETWEEN,
|
||||
Value: []interface{}{int64(5), int64(9)},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
Children: []*Call{
|
||||
{Name: "Rows"},
|
||||
},
|
||||
}},
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue