-
Notifications
You must be signed in to change notification settings - Fork 2
/
suite.json
120 lines (118 loc) · 4.75 KB
/
suite.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "Primary tests",
"description": "A basic set of tests modled after: SELECT granule, geometry FROM parquet_scan('data/{provider}/{short_name}/all.parquet') WHERE st_intersects(geometry::geometry, '{user_search}'::GEOMETRY) ORDER BY granule",
"setup": {"sql": "SELECT version();"},
"takedown": {"sql": "SELECT version();"},
"tests": [
{
"name": "test1-with-time",
"description": "conduct an intersecting box and time based search which is then sorted",
"columns": ["granuleid"],
"operations": [
{
"ands": [
{
"description": "does a box interset and find records",
"type_of": "geometry",
"option": "intersects",
"value": "POLYGON((-110.60867891721024 53.37487808881224, -110.60867891721024 53.29764645852637, -109.73806661064765 53.29764645852637, -109.73806661064765 53.37487808881224, -110.60867891721024 53.37487808881224))"
},
{
"description": "are their records that come after a fixed date",
"type_of": "time",
"option": "greater-then",
"value": "2017-06-29T16:21"
}
]
}
],
"sortby": "GranuleID",
"source": "{data}",
"expected": {"action": "greater-then", "value": 11208}
},
{
"name": "test2-timeless",
"description": "conduct an time based search",
"columns": ["granuleid"],
"operations": [
{
"ands": [
{
"description": "does a box interset and find records",
"type_of": "geometry",
"option": "intersects",
"value": "POLYGON((-110.60867891721024 53.37487808881224, -110.60867891721024 53.29764645852637, -109.73806661064765 53.29764645852637, -109.73806661064765 53.37487808881224, -110.60867891721024 53.37487808881224))"
}
]
}
],
"sortby": "granuleid",
"source": "{data}",
"expected": {"action": "greater-then", "value": 11208}
},
{
"name": "test3-onlytime",
"description": "conduct an time based search",
"columns": ["granuleid"],
"operations": [
{
"ands": [
{
"description": "are their records that come after a fixed date",
"type_of": "time",
"option": "greater-then",
"value": "2017-06-29T16:21"
}
]
}
],
"sortby": "granuleid",
"source": "{data}",
"expected": {"action": "greater-then", "value": 20000}
},
{
"name": "test4-onlytime",
"description": "conduct an time based search",
"columns": ["granuleid"],
"operations": [
{
"ands": [
{
"description": "are their records that come after a fixed date",
"type_of": "time",
"option": "greater-then",
"value": "2015-06-29T16:21"
}
]
}
],
"sortby": "granuleid",
"source": "{data}"
},
{
"name": "test5-onlytime",
"description": "conduct an time based search which is less then",
"columns": ["granuleid"],
"operations": [
{
"ands": [
{
"description": "are their records that come after a fixed date",
"type_of": "time",
"option": "less-then",
"value": "2015-06-29T16:21"
}
]
}
],
"sortby": "granuleid",
"source": "{data}"
},
{
"name": "raw-test",
"description": "conduct an time based search which is less then",
"raw": "SELECT * FROM read_parquet({data}) WHERE StartTime <= '2015-06-29T16:21' ORDER BY granuleid LIMIT 2000",
"source": "{data}"
}
]
}