This repository was archived by the owner on Nov 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +36
-36
lines changed Expand file tree Collapse file tree 1 file changed +36
-36
lines changed Original file line number Diff line number Diff line change @@ -1117,40 +1117,40 @@ var CloverTests = []testdata.AggregationTestCase{
11171117 TestName : "Weird aggregation and filter names" ,
11181118 QueryRequestJson : `
11191119 {
1120- "aggs": {
1121- "q": {
1122- "aggs": {
1123- "time": {
1124- "aggs": {
1125- "cardinality(a.b.keyword)": {
1126- "cardinality": {
1127- "field": "a.b.keyword"
1128- }
1129- }
1130- },
1131- "date_histogram": {
1132- "field": "@timestamp",
1133- "fixed_interval": "12h",
1134- "min_doc_count": 0,
1135- "time_zone": "Europe/Warsaw"
1136- }
1137- }
1138- },
1139- "filters": {
1140- "filters": {
1141- "(a.b:*c* OR a.b:*d*)": {
1142- "query_string": {
1143- "query": "(a.b:*c* OR a.b:*d*)"
1144- }
1145- }
1120+ "aggs": {
1121+ "q": {
1122+ "aggs": {
1123+ "time": {
1124+ "aggs": {
1125+ "cardinality(a.b.keyword)": {
1126+ "cardinality": {
1127+ "field": "a.b.keyword"
1128+ }
1129+ }
1130+ },
1131+ "date_histogram": {
1132+ "field": "@timestamp",
1133+ "fixed_interval": "12h",
1134+ "min_doc_count": 0,
1135+ "time_zone": "Europe/Warsaw"
1136+ }
1137+ }
1138+ },
1139+ "filters": {
1140+ "filters": {
1141+ "(a.b:*c* OR a.b:*d*)": {
1142+ "query_string": {
1143+ "query": "(a.b:*c* OR a.b:*d*)"
1144+ }
1145+ }
1146+ }
1147+ },
11461148 }
1147- },
1148- }
1149- },
1150- "runtime_mappings": {},
1151- "size": 0,
1152- "timeout": "30000ms",
1153- "track_total_hits": true
1149+ },
1150+ "runtime_mappings": {},
1151+ "size": 0,
1152+ "timeout": "30000ms",
1153+ "track_total_hits": true
11541154 }` ,
11551155 ExpectedResponse : `
11561156 {
@@ -1174,13 +1174,13 @@ var CloverTests = []testdata.AggregationTestCase{
11741174 "q": {
11751175 "buckets": {
11761176 "(a.b:*c* OR a.b:*d*)": {
1177- "doc_count": 14074,
1177+ "doc_count": 14074,
11781178 "time": {
11791179 "buckets": [
11801180 {
11811181 "key_as_string": "2024-10-13T10:00:00.000",
1182- "key": 1728813600000,
1183- "doc_count": 319,
1182+ "key": 1728813600000,
1183+ "doc_count": 319,
11841184 "cardinality(a.b.keyword)": {
11851185 "value": 672
11861186 }
You can’t perform that action at this time.
0 commit comments