{QueryResource{Select:[]string{"test"},From:"test",Aggregations:&QueryResourceAggregations{}},"cannot use 'select' and 'aggregations' together",true},
{QueryResource{From:"test",Aggregations:&QueryResourceAggregations{CountBy:"test",GroupBy:"test"}},"cannot use 'count_by' and 'group_by' together",true},
{QueryResource{From:"test",Aggregations:&QueryResourceAggregations{CountBy:"test",OrderBy:"test"}},"cannot use 'count_by' and 'order_by' together",true},
{QueryResource{From:"test",Aggregations:&QueryResourceAggregations{}},"aggregations must have at least one of 'count_by', 'group_by', or 'order_by'",true},
require.EqualError(t,actualErr,tt.expectedErrorString,"Expected error string to be '%s' but got '%s' for TestQueryResource_Validate[%d] %s",tt.expectedErrorString,actualErr,ndx,tt.queryResource)
}else{
require.NoError(t,actualErr,"Expected no error but got one for TestQueryResource_Validate[%d] `%s`",ndx,actualErr)