Commit 6a5c598
committed
Stabilize PPL ITs on the analytics-engine route (array/map-path/datatype/basic)
Analytics-engine route parity for four PPL IT classes; test-only. Uses the
@RequiresCapability annotation + Capability registry (opensearch-project#5560) plus matching
excludeTestsMatching entries.
CalciteArrayFunctionIT:
- Skip the array-index load on the AE route (multi-value 'numbers' field the
parquet store rejects); no test queries it (all build arrays inline).
- 16 higher-order lambda functions (transform/mvmap, reduce, filter, exists,
forall) -> new ARRAY_HIGHER_ORDER_FUNC (no DataFusion lambda execution).
CalcitePPLMapPathIT:
- mvcombine lowers to ARRAY_AGG, unregistered on the analytics backend ->
new MVCOMBINE_ARRAY_AGG.
- addtotals crashes the DataFusion backend with a join panic ->
new ADDTOTALS_JOIN_PANIC.
CalciteDataTypeIT (guards on base DataTypeIT; build.gradle globs broadened to
'*' so they cover the Calcite subclass):
- test_nonnumeric_data_types / test_alias_data_type: nested/object/geo/alias
types stripped (NESTED_FIELDS).
- test_numeric_data_types: scaled_float reported as bigint not double ->
new SCALED_FLOAT_TYPE.
- testNumericFieldFromString: empty-string -> numeric coerces to null not 0 ->
new STRING_TO_NUMERIC_COERCION.
- testBooleanFieldFromNumberAcrossWildcardIndices: cross-index incompatible
field types rejected -> new CROSS_INDEX_INCOMPATIBLE_TYPES.
- testBooleanFieldFromString: seeds+deletes a doc; DELETE unsupported (DOC_MUTATION).
CalcitePPLBasicIT.testRegexpFilter: REGEXP filter throws a backend
NullPointerException on the AE route -> new REGEXP_FILTER.
v2/Calcite route unchanged (all run, 0 skips).
Signed-off-by: Kai Huang <ahkcs@amazon.com>1 parent cb80047 commit 6a5c598
6 files changed
Lines changed: 143 additions & 5 deletions
File tree
- integ-test
- src/test/java/org/opensearch/sql
- calcite/remote
- ppl
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | | - | |
1079 | | - | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
1080 | 1081 | | |
1081 | | - | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1082 | 1089 | | |
1083 | 1090 | | |
1084 | 1091 | | |
| |||
1176 | 1183 | | |
1177 | 1184 | | |
1178 | 1185 | | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
1179 | 1215 | | |
1180 | 1216 | | |
1181 | 1217 | | |
| |||
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
| 124 | + | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
| |||
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
| 139 | + | |
131 | 140 | | |
132 | 141 | | |
133 | 142 | | |
| |||
142 | 151 | | |
143 | 152 | | |
144 | 153 | | |
| 154 | + | |
145 | 155 | | |
146 | 156 | | |
147 | 157 | | |
| |||
156 | 166 | | |
157 | 167 | | |
158 | 168 | | |
| 169 | + | |
159 | 170 | | |
160 | 171 | | |
161 | 172 | | |
| |||
170 | 181 | | |
171 | 182 | | |
172 | 183 | | |
| 184 | + | |
173 | 185 | | |
174 | 186 | | |
175 | 187 | | |
| |||
186 | 198 | | |
187 | 199 | | |
188 | 200 | | |
| 201 | + | |
189 | 202 | | |
190 | 203 | | |
191 | 204 | | |
| |||
203 | 216 | | |
204 | 217 | | |
205 | 218 | | |
| 219 | + | |
206 | 220 | | |
207 | 221 | | |
208 | 222 | | |
| |||
217 | 231 | | |
218 | 232 | | |
219 | 233 | | |
| 234 | + | |
220 | 235 | | |
221 | 236 | | |
222 | 237 | | |
| |||
232 | 247 | | |
233 | 248 | | |
234 | 249 | | |
| 250 | + | |
235 | 251 | | |
236 | 252 | | |
237 | 253 | | |
| |||
797 | 813 | | |
798 | 814 | | |
799 | 815 | | |
| 816 | + | |
800 | 817 | | |
801 | 818 | | |
802 | 819 | | |
| |||
810 | 827 | | |
811 | 828 | | |
812 | 829 | | |
| 830 | + | |
813 | 831 | | |
814 | 832 | | |
815 | 833 | | |
| |||
823 | 841 | | |
824 | 842 | | |
825 | 843 | | |
| 844 | + | |
826 | 845 | | |
827 | 846 | | |
828 | 847 | | |
| |||
840 | 859 | | |
841 | 860 | | |
842 | 861 | | |
| 862 | + | |
843 | 863 | | |
844 | 864 | | |
845 | 865 | | |
| |||
855 | 875 | | |
856 | 876 | | |
857 | 877 | | |
| 878 | + | |
858 | 879 | | |
859 | 880 | | |
860 | 881 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| 147 | + | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
| |||
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| 170 | + | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
| |||
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| 114 | + | |
| 115 | + | |
106 | 116 | | |
107 | 117 | | |
108 | 118 | | |
| |||
114 | 124 | | |
115 | 125 | | |
116 | 126 | | |
| 127 | + | |
| 128 | + | |
117 | 129 | | |
118 | 130 | | |
119 | 131 | | |
| |||
149 | 161 | | |
150 | 162 | | |
151 | 163 | | |
| 164 | + | |
| 165 | + | |
152 | 166 | | |
153 | 167 | | |
154 | 168 | | |
| |||
188 | 202 | | |
189 | 203 | | |
190 | 204 | | |
| 205 | + | |
| 206 | + | |
191 | 207 | | |
192 | 208 | | |
193 | 209 | | |
| |||
Lines changed: 60 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
196 | 255 | | |
197 | 256 | | |
198 | 257 | | |
| |||
0 commit comments