Skip to content

Commit 90f2179

Browse files
committed
gis-8639 fix
1 parent 83958ed commit 90f2179

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

uncoder-core/app/translator/platforms/elasticsearch/str_value_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ESQLQueryStrValueManager(StrValueManager):
3939
}
4040

4141

42-
class ElasticEQLQueryStrValueManager(StrValueManager):
42+
class EQLQueryStrValueManager(StrValueManager):
4343
str_spec_symbols_map: ClassVar[dict[str, type[BaseSpecSymbol]]] = {"*": SingleSymbolWildCard}
4444

4545
def from_str_to_container(self, value: str) -> StrValue:
@@ -48,4 +48,4 @@ def from_str_to_container(self, value: str) -> StrValue:
4848

4949

5050
esql_query_str_value_manager = ESQLQueryStrValueManager()
51-
elastic_eql_str_value_manager = ElasticEQLQueryStrValueManager()
51+
eql_str_value_manager = EQLQueryStrValueManager()

uncoder-core/app/translator/platforms/elasticsearch/tokenizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from app.translator.core.models.query_tokens.identifier import Identifier
2525
from app.translator.core.tokenizer import QueryTokenizer
2626
from app.translator.platforms.base.lucene.tokenizer import LuceneTokenizer
27-
from app.translator.platforms.elasticsearch.str_value_manager import elastic_eql_str_value_manager
27+
from app.translator.platforms.elasticsearch.str_value_manager import eql_str_value_manager
2828
from app.translator.tools.utils import get_match_group
2929

3030

@@ -65,7 +65,7 @@ class ElasticSearchEQLTokenizer(QueryTokenizer):
6565
rf'"(?P<{ValueType.double_quotes_value}>(?:[:a-zA-Z*0-9=+%#\-_/,;`?~‘\'.<>$&^@!\]\[()\s]|\\\"|\\)*)"' # noqa: RUF001
6666
)
6767

68-
str_value_manager = elastic_eql_str_value_manager
68+
str_value_manager = eql_str_value_manager
6969

7070
def get_operator_and_value(
7171
self, match: re.Match, mapped_operator: str = OperatorType.EQ, operator: Optional[str] = None

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy