@@ -105,7 +105,8 @@ def regex_modifier(self, field: str, value: DEFAULT_VALUE_TYPE) -> str:
105
105
if isinstance (value , list ):
106
106
return f"({ self .or_token .join (self .regex_modifier (field = field , value = v ) for v in value )} )"
107
107
value = self ._pre_process_value (field , value , value_type = ValueType .regex_value , wrap_int = True )
108
- return f'{ self .apply_field (field )} regex~ "{ value } [^z].?"'
108
+
109
+ return f'{ self .apply_field (field )} regex~ "{ value } .?"'
109
110
110
111
def keywords (self , field : str , value : DEFAULT_VALUE_TYPE ) -> str :
111
112
if isinstance (value , list ):
@@ -139,14 +140,18 @@ def _generate_from_tokenized_query_container_by_source_mapping(
139
140
self , query_container : TokenizedQueryContainer , source_mapping : SourceMapping
140
141
) -> str :
141
142
unmapped_fields = self .mappings .check_fields_mapping_existence (
142
- query_container .meta_info .query_fields , source_mapping
143
+ query_container .meta_info .query_fields ,
144
+ query_container .meta_info .function_fields_map ,
145
+ self .platform_functions .manager .supported_render_names ,
146
+ source_mapping ,
143
147
)
144
148
rendered_functions = self .generate_functions (query_container .functions .functions , source_mapping )
145
149
prefix = self .generate_prefix (source_mapping .log_source_signature , rendered_functions .rendered_prefix )
146
150
147
151
if source_mapping .raw_log_fields :
148
152
defined_raw_log_fields = self .generate_raw_log_fields (
149
- fields = query_container .meta_info .query_fields , source_mapping = source_mapping
153
+ fields = query_container .meta_info .query_fields + query_container .meta_info .function_fields ,
154
+ source_mapping = source_mapping ,
150
155
)
151
156
prefix += f"\n { defined_raw_log_fields } "
152
157
if source_mapping .conditions :
0 commit comments