Skip to content

Commit 8c9c744

Browse files
committed
fix sql query specifications
1 parent 8a1a7bb commit 8c9c744

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

bridge/src/test/scala/app/softnetwork/elastic/sql/SQLQuerySpec.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
542542
| "terms": {
543543
| "field": "City",
544544
| "exclude": ["Berlin"],
545-
| "min_doc_count": 0,
545+
| "min_doc_count": 1,
546546
| "order": {
547547
| "cnt": "desc"
548548
| }
@@ -1060,7 +1060,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
10601060
| "terms": {
10611061
| "field": "Country",
10621062
| "exclude": ["USA"],
1063-
| "min_doc_count":1,
1063+
| "min_doc_count": 1,
10641064
| "order": {
10651065
| "_key": "asc"
10661066
| }
@@ -1070,7 +1070,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
10701070
| "terms": {
10711071
| "field": "City",
10721072
| "exclude": ["Berlin"],
1073-
| "min_doc_count":0
1073+
| "min_doc_count": 1
10741074
| },
10751075
| "aggs": {
10761076
| "cnt": {
@@ -1127,7 +1127,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
11271127
| "terms": {
11281128
| "field": "Country",
11291129
| "exclude": ["USA"],
1130-
| "min_doc_count":1,
1130+
| "min_doc_count": 1,
11311131
| "order": {
11321132
| "_key": "asc"
11331133
| }
@@ -1137,7 +1137,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
11371137
| "terms": {
11381138
| "field": "City",
11391139
| "exclude": ["Berlin"],
1140-
| "min_doc_count":0
1140+
| "min_doc_count": 1
11411141
| },
11421142
| "aggs": {
11431143
| "cnt": {
@@ -1199,7 +1199,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
11991199
| "identifier": {
12001200
| "terms": {
12011201
| "field": "identifier",
1202-
| "min_doc_count":1,
1202+
| "min_doc_count": 1,
12031203
| "order": {
12041204
| "ct": "desc"
12051205
| }
@@ -1367,7 +1367,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
13671367
| "identifier": {
13681368
| "terms": {
13691369
| "field": "identifier",
1370-
| "min_doc_count":1,
1370+
| "min_doc_count": 1,
13711371
| "order": {
13721372
| "ct": "desc"
13731373
| }
@@ -1525,7 +1525,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
15251525
| "identifier": {
15261526
| "terms": {
15271527
| "field": "identifier",
1528-
| "min_doc_count":1
1528+
| "min_doc_count": 1
15291529
| },
15301530
| "aggs": {
15311531
| "max_diff": {
@@ -2767,7 +2767,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
27672767
| "dept": {
27682768
| "terms": {
27692769
| "field": "department",
2770-
| "min_doc_count":1
2770+
| "min_doc_count": 1
27712771
| },
27722772
| "aggs": {
27732773
| "cnt": {

es6/bridge/src/test/scala/app/softnetwork/elastic/sql/SQLQuerySpec.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
542542
| "terms": {
543543
| "field": "City",
544544
| "exclude": "Berlin",
545-
| "min_doc_count": 0,
545+
| "min_doc_count": 1,
546546
| "order": {
547547
| "cnt": "desc"
548548
| }
@@ -1060,7 +1060,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
10601060
| "terms": {
10611061
| "field": "Country",
10621062
| "exclude": "USA",
1063-
| "min_doc_count":1,
1063+
| "min_doc_count": 1,
10641064
| "order": {
10651065
| "_key": "asc"
10661066
| }
@@ -1070,7 +1070,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
10701070
| "terms": {
10711071
| "field": "City",
10721072
| "exclude": "Berlin",
1073-
| "min_doc_count":0
1073+
| "min_doc_count": 1
10741074
| },
10751075
| "aggs": {
10761076
| "cnt": {
@@ -1127,7 +1127,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
11271127
| "terms": {
11281128
| "field": "Country",
11291129
| "exclude": "USA",
1130-
| "min_doc_count":1,
1130+
| "min_doc_count": 1,
11311131
| "order": {
11321132
| "_key": "asc"
11331133
| }
@@ -1137,7 +1137,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
11371137
| "terms": {
11381138
| "field": "City",
11391139
| "exclude": "Berlin",
1140-
| "min_doc_count":0
1140+
| "min_doc_count": 1
11411141
| },
11421142
| "aggs": {
11431143
| "cnt": {
@@ -1199,7 +1199,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
11991199
| "identifier": {
12001200
| "terms": {
12011201
| "field": "identifier",
1202-
| "min_doc_count":1,
1202+
| "min_doc_count": 1,
12031203
| "order": {
12041204
| "ct": "desc"
12051205
| }
@@ -1367,7 +1367,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
13671367
| "identifier": {
13681368
| "terms": {
13691369
| "field": "identifier",
1370-
| "min_doc_count":1,
1370+
| "min_doc_count": 1,
13711371
| "order": {
13721372
| "ct": "desc"
13731373
| }
@@ -1525,7 +1525,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
15251525
| "identifier": {
15261526
| "terms": {
15271527
| "field": "identifier",
1528-
| "min_doc_count":1
1528+
| "min_doc_count": 1
15291529
| },
15301530
| "aggs": {
15311531
| "max_diff": {
@@ -2767,7 +2767,7 @@ class SQLQuerySpec extends AnyFlatSpec with Matchers {
27672767
| "dept": {
27682768
| "terms": {
27692769
| "field": "department",
2770-
| "min_doc_count":1
2770+
| "min_doc_count": 1
27712771
| },
27722772
| "aggs": {
27732773
| "cnt": {

0 commit comments

Comments
 (0)