Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add PPL support to access values in array #675

Open
A-Gray-Cat opened this issue Sep 17, 2024 · 1 comment
Open

[FEATURE] Add PPL support to access values in array #675

A-Gray-Cat opened this issue Sep 17, 2024 · 1 comment
Labels
enhancement New feature or request PPL Pipe Processing Language support untriaged

Comments

@A-Gray-Cat
Copy link

Is your feature request related to a problem?
Currently, PPL doesn't support accessing values inside an array. For example,

{
    "items": ["a", "b", "c"]
}

Users can't select value a, b, or c using PPL.

What solution would you like?
Users can access the first element of the array by using syntax like eval first_item = items[0], or it can be retrieved directly using the fields command, e.g. fields items[0].

@A-Gray-Cat A-Gray-Cat added enhancement New feature or request untriaged labels Sep 17, 2024
@YANG-DB YANG-DB added the PPL Pipe Processing Language support label Sep 17, 2024
@YANG-DB
Copy link
Member

YANG-DB commented Sep 17, 2024

@A-Gray-Cat thanks - we will review !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PPL Pipe Processing Language support untriaged
Projects
None yet
Development

No branches or pull requests

2 participants