diff --git a/detection_rules/rule.py b/detection_rules/rule.py index 1ac6f7a4e..605b9157f 100644 --- a/detection_rules/rule.py +++ b/detection_rules/rule.py @@ -595,8 +595,11 @@ class QueryValidator: raise NotImplementedError() @cached - def get_required_fields(self, index: str) -> List[dict]: + def get_required_fields(self, index: str) -> List[Optional[dict]]: """Retrieves fields needed for the query along with type information from the schema.""" + if isinstance(self, ESQLValidator): + return [] + current_version = Version.parse(load_current_package_version(), optional_minor_and_patch=True) ecs_version = get_stack_schemas()[str(current_version)]['ecs'] beats_version = get_stack_schemas()[str(current_version)]['beats']