-
Notifications
You must be signed in to change notification settings - Fork 141
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] PPL lookup
Functionality
#2651
Comments
PPL Lookup Design ProposalAs implemented in PR 2698 the proposed design (and so far implemented) syntax is: DesignThe The Spark PPL Lookup command implementation is done in separate PR in the opensearch-spark repo: PR 407. Here we can (and need) to implement it as a Syntax
Then we need at least one If more than one If the field has a different name in the current search result use
Examples:
|
+1 for this feature |
PPL Lookup Command DesignAs implemented in opensearch-project/opensearch-spark#686 the proposed design doc: OverviewLookup command enriches your search data by adding or replacing data from a lookup index (dimension table). Syntax of Lookup CommandSEARCH source=<sourceIndex>
| <other piped command>
| LOOKUP <lookupIndex> (<lookupMappingField> [AS <sourceMappingField>])...
[(REPLACE | APPEND) (<inputField> [AS <outputField>])...]
| <other piped command> lookupIndex
lookupMappingField
sourceMappingField
inputField
outputField
REPLACE | APPEND
Usage
ExamplesSEARCH source=<sourceIndex>
| WHERE orderType = 'Cancelled'
| LOOKUP account_list, mkt_id AS mkt_code REPLACE amount, account_name AS name
| STATS count(mkt_code), avg(amount) BY name SEARCH source=<sourceIndex>
| DEDUP market_id
| EVAL category=replace(category, "-", ".")
| EVAL category=ltrim(category, "dvp.")
| LOOKUP bounce_category category AS category APPEND classification SEARCH source=<sourceIndex>
| LOOKUP bounce_category category |
@YANG-DB guess we can close this one because it seems done in opensearch-project/opensearch-spark#686 ? |
We are keeping this open since this issue refers to the PPL OpenSearch engine |
lookup
Functionality
Is your feature request related to a problem?
OpenSearch users want an easy way to enrich the data they have stored in OpenSearch and external data sources using content from an OpenSearch index. This is common in security analytics scenarios where one wants to enrich their IP reputation lists, vulnerability databases, or threat feeds.
What solution would you like?
Do a lookup of a field/value, from another log group and use that to convert to user friendly name/error code.
*** Out of Scope ***
What alternatives have you considered?
Performing joins using SQL
Do you have any additional context?
None.
The text was updated successfully, but these errors were encountered: