Minor Fix : query_cost_record_search_index Search exception for elasticsearch instance (#21985)

* Fix : query_cost_record_search_index Search exception for elasticsearch instance

* add sample query to cover test scenarios

* update mapping and fix test
This commit is contained in:
sonika-shah 2025-06-28 11:22:34 +05:30 committed by GitHub
parent 26ae339aff
commit 5d733b490c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 1387 additions and 9 deletions

File diff suppressed because it is too large Load Diff

View File

@ -73,7 +73,7 @@ class QueryParserTest(TestCase):
Check the join count Check the join count
""" """
expected_result = { expected_result = {
"shopify.raw_product_catalog": 5, "shopify.raw_product_catalog": 6,
"dim_customer": 4, "dim_customer": 4,
"fact_order": 4, "fact_order": 4,
"shopify.fact_sale": 5, "shopify.fact_sale": 5,

View File

@ -201,8 +201,7 @@
}, },
"query": { "query": {
"type": "text", "type": "text",
"index": false, "index": false
"doc_values": false
}, },
"queryDate": { "queryDate": {
"type": "long" "type": "long"

View File

@ -177,9 +177,8 @@
} }
}, },
"query": { "query": {
"type": "keyword", "type": "text",
"index": false, "index": false
"doc_values": false
}, },
"queryDate": { "queryDate": {
"type": "long" "type": "long"

View File

@ -182,9 +182,8 @@
} }
}, },
"query": { "query": {
"type": "keyword", "type": "text",
"index": false, "index": false
"doc_values": false
}, },
"queryDate": { "queryDate": {
"type": "long" "type": "long"