You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expectedWhereStr: "((((Path LIKE 'count.metric.%' AND match(Path, '^count[.]metric[.]([^.]*?)first[.]help[.]?$')) OR (Path LIKE 'count.metric.th%' AND match(Path, '^count[.]metric[.]th([^.]*?)rd[.]help[.]?$'))) OR (Path IN ('count.metric.second.help','count.metric.second.help.','count.metric.forth.help','count.metric.forth.help.'))) AND (Level=10004)) AND (Date >='"+
288
290
date.FromTimestampToDaysFormat(someFrom) +"' AND Date <= '"+date.UntilTimestampToDaysFormat(someUntil) +"')",
289
-
expectedErr: nil,
291
+
},
292
+
{
293
+
name: "queries do not satisfy wildcard min distance",
294
+
givenQueries: []string{
295
+
"*.first.metric.*",
296
+
"*.second.metric.*",
297
+
},
298
+
wildcardMinDistance: 1,
299
+
expectedWhereStr: "",
300
+
expectedErr: errs.NewErrorWithCode("query has wildcards way too early at the start and at the end of it", http.StatusBadRequest),
0 commit comments