Skip to content

[RFC] Standardizing New Feature Documentation in OpenSearch PPL #4220

@anasalkouz

Description

@anasalkouz

Problem Statement

Currently, while new features are highlighted in release notes, there's no standardized way to indicate new features or enhancements in the OpenSearch PPL language documentation. This makes it difficult for users to:

  1. Identify which features are available in their version.
  2. Track when specific enhancements were introduced.
  3. Understand version compatibility requirements.

Current State

Current PPL Documentation Examples

  1. New Commands (e.g., regex command):
Version
-------
This command was introduced in OpenSearch 3.3.
  1. Enhanced Features (e.g., fields command):
Enhanced Features (Version 3.3.0)
--------------------------------

Proposal

1. Standardized Version Notation

I am proposing a format that is commonly used in other documentation softwares like Sphinx and Python.

For all PPL commands and functions, we should introduce a consistent version information and command status block as following:

Command Name
===========

Version Information
-----------------
.. versionadded:: 3.3.0
    Initial command implementation

.. versionchanged:: 3.4.0
    Added support for feature X

Status
------
[Stable|Experimental]

Description
----------
[Command description]

Syntax
------
[Command syntax]

Parameters
---------
[Parameter details]

Examples
--------
[Usage examples]

2. Version Compatibility Matrix

Add a version compatibility matrix in the main PPL index documentation:

Command Added In Modified Status
regex 3.3.0 - Stable
fields 1.0.0 3.3.0 Stable

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLPiped processing languageRFCRequest For CommentsdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    Status

    New

    Status

    Not Started

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions