Skip to content

[Bug] ESQL schema field pruning #5306

@eric-forte-elastic

Description

@eric-forte-elastic

Describe the Bug

Currently the ESQL schemas are not being pruned correctly. See https://github.com/elastic/detection-rules/actions/runs/19307303532/job/55218108129?pr=5305#step:9:42.

What was once a non-nested flattened field
"azure.signinlogs.properties.authentication_details": "flattened",
gets merged with
"azure.signinlogs.properties.authentication_details.authentication_method": "keyword",
and becomes one. Pruning needs to happen again after merging.

To Reproduce

No response

Expected Behavior

No response

Screenshots

No response

Desktop - OS

None

Desktop - Version

No response

Additional Context

No response

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions