2424from app .translator .core .custom_types .tokens import GroupType , LogicalOperatorType , OperatorType
2525from app .translator .core .custom_types .values import ValueType
2626from app .translator .core .escape_manager import EscapeManager
27- from app .translator .core .exceptions .functions import NotSupportedFunctionException
2827from app .translator .core .exceptions .parser import (
2928 QueryParenthesesException ,
3029 TokenizerGeneralException ,
@@ -285,8 +284,8 @@ def _check_field_value_match(self, query: str, white_space_pattern: str = r"\s+"
285284
286285 return False
287286
288- def search_function_value (self , query : str ) -> tuple [FunctionValue , str ]: # noqa: ARG002
289- raise NotSupportedFunctionException
287+ def search_function_value (self , query : str ) -> tuple [FunctionValue , str ]:
288+ ...
290289
291290 @staticmethod
292291 def _check_function_value_match (query : str ) -> bool : # noqa: ARG004
@@ -304,8 +303,9 @@ def _get_next_token(
304303 logical_operator = logical_operator_search .group ("logical_operator" )
305304 pos = logical_operator_search .end ()
306305 return Identifier (token_type = logical_operator .lower ()), query [pos :]
307- if self .platform_functions and self ._check_function_value_match (query ):
308- return self .search_function_value (query )
306+ if self .platform_functions and self ._check_function_value_match (query ): # noqa: SIM102
307+ if search_result := self .search_function_value (query ):
308+ return search_result
309309 if self ._check_field_value_match (query ):
310310 return self .search_field_value (query )
311311 if self .keyword_pattern and re .match (self .keyword_pattern , query ):
0 commit comments