CourseInsights / test / resources / queries / invalid / iSShouldOnlyHaveOneKeyHasTwo.json
iSShouldOnlyHaveOneKeyHasTwo.json
Raw
{
	"title": "IS should only have 1 key, has 2",
	"input": {
		"WHERE": {
			"OR": [
				{
					"AND": [
						{
							"GT": {
								"sections_avg": 90
							}
						},
						{
							"IS": {
								"sections_dept": "adhe",
								"sections_id": "*2"
							}
						}
					]
				},
				{
					"EQ": {
						"sections_avg": 95
					}
				}
			]
		},
		"OPTIONS": {
			"COLUMNS": [
				"sections_dept",
				"sections_id",
				"sections_avg"
			],
			"ORDER": "sections_dept"
		}
	},
	"errorExpected": true,
	"orderExpected": true,
	"orderBy": "sections_dept",
	"expected": "InsightError"
}