Skip to content

Expose constant fields used by script #60001

Closed
@stu-elastic

Description

@stu-elastic

This will allows runtime fields to validate that scripts only use fields available and facilitate cycle detection.

  • One advanced feature here is users only see doc as part of the "main" method in Painless. If doc is passed into a user-defined function this must be tracked and the parameter in the function must also add constant fields used as part of doc.

  • Handle doc aliasing (def foo = doc).

Related: #59332

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions