-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
413 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"testCaseName": "Order By age column ascending", | ||
"query": { | ||
"action": { | ||
"type": "Aggregated", | ||
"groupByFields": ["age"], | ||
"orderByFields": ["age asc"] | ||
}, | ||
"filterExpression": { | ||
"type": "True" | ||
} | ||
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"age": null, | ||
"count": 2 | ||
}, | ||
{ | ||
"age": 4, | ||
"count": 2 | ||
}, | ||
{ | ||
"age": 5, | ||
"count": 1 | ||
}, | ||
{ | ||
"age": 6, | ||
"count": 1 | ||
}, | ||
{ | ||
"age": 50, | ||
"count": 17 | ||
}, | ||
{ | ||
"age": 51, | ||
"count": 7 | ||
}, | ||
{ | ||
"age": 52, | ||
"count": 8 | ||
}, | ||
{ | ||
"age": 53, | ||
"count": 8 | ||
}, | ||
{ | ||
"age": 54, | ||
"count": 9 | ||
}, | ||
{ | ||
"age": 55, | ||
"count": 8 | ||
}, | ||
{ | ||
"age": 56, | ||
"count": 9 | ||
}, | ||
{ | ||
"age": 57, | ||
"count": 10 | ||
}, | ||
{ | ||
"age": 58, | ||
"count": 9 | ||
}, | ||
{ | ||
"age": 59, | ||
"count": 9 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,59 @@ | ||
{ | ||
"testCaseName": "Order By QC float column", | ||
"testCaseName": "Order By QC float column ascending", | ||
"query": { | ||
"action": { | ||
"type": "Aggregated", | ||
"groupByFields": ["qc_value"], | ||
"orderByFields": ["qc_value desc"] | ||
"orderByFields": ["qc_value asc"] | ||
}, | ||
"filterExpression": { | ||
"type": "True" | ||
} | ||
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 10, | ||
"qc_value": 0.98 | ||
"count": 2, | ||
"qc_value": null | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.97 | ||
"qc_value": 0.89 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.96 | ||
"qc_value": 0.9 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.95 | ||
"qc_value": 0.91 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.94 | ||
"qc_value": 0.92 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.93 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.92 | ||
"qc_value": 0.94 | ||
}, | ||
{ | ||
"count": 8, | ||
"qc_value": 0.95 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.91 | ||
"qc_value": 0.96 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.9 | ||
"qc_value": 0.97 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.89 | ||
"qc_value": 0.98 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"testCaseName": "Order By QC float column descending", | ||
"query": { | ||
"action": { | ||
"type": "Aggregated", | ||
"groupByFields": ["qc_value"], | ||
"orderByFields": ["qc_value desc"] | ||
}, | ||
"filterExpression": { | ||
"type": "True" | ||
} | ||
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 10, | ||
"qc_value": 0.98 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.97 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.96 | ||
}, | ||
{ | ||
"count": 8, | ||
"qc_value": 0.95 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.94 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.93 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.92 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.91 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.9 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.89 | ||
}, | ||
{ | ||
"count": 2, | ||
"qc_value": null | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"testCaseName": "Order By QC float column ascending after filtering", | ||
"query": { | ||
"action": { | ||
"type": "Aggregated", | ||
"groupByFields": ["qc_value"], | ||
"orderByFields": ["qc_value asc"] | ||
}, | ||
"filterExpression": { | ||
"from": 0.1, | ||
"to": 2121.1, | ||
"column": "qc_value", | ||
"type": "FloatBetween" | ||
} | ||
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 10, | ||
"qc_value": 0.89 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.9 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.91 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.92 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.93 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.94 | ||
}, | ||
{ | ||
"count": 8, | ||
"qc_value": 0.95 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.96 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.97 | ||
}, | ||
{ | ||
"count": 10, | ||
"qc_value": 0.98 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 59 | ||
"count": 58 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 100 | ||
"count": 99 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"testCaseName": "DateBetween Query from an early date with unbounded 'to'", | ||
"query": { | ||
"action": { | ||
"type": "Aggregated" | ||
}, | ||
"filterExpression": { | ||
"type": "DateBetween", | ||
"column": "date", | ||
"from": "2012-03-18", | ||
"to": null | ||
} | ||
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 99 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 52 | ||
"count": 51 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 53 | ||
"count": 52 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 54 | ||
"count": 53 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 80 | ||
"count": 78 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
"expectedQueryResult": [ | ||
{ | ||
"count": 25 | ||
"count": 33 | ||
} | ||
] | ||
} |
Oops, something went wrong.