generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 181
Feature/mvcombine #5025
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
Open
srikanthpadakanti
wants to merge
23
commits into
opensearch-project:main
Choose a base branch
from
srikanthpadakanti:feature/mvcombine
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/mvcombine #5025
Changes from 16 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
5ce6849
MvCombine Command Feature
33c9220
MvCombine Command Feature
3ee160b
Add doctests to MvCombine
5bc0d98
spotlesscheck apply
b49b0e7
Merge branch 'opensearch-project:main' into feature/mvcombine
srikanthpadakanti a5913af
spotlesscheck apply
5ac0f3d
spotlesscheck apply
dc4da50
Merge branch 'opensearch-project:main' into feature/mvcombine
srikanthpadakanti e4150e4
spotlessapply
dba85da
Address coderrabbit comments
6750593
Address coderrabbit comments
b2a9d9f
Address coderrabbit comments
6510d2b
Address coderrabbit comments
a93660b
Address coderrabbit comments
776fcad
Address coderrabbit comments
9a83103
Add mvcombine to index.md
c72c45b
Merge branch 'opensearch-project:main' into feature/mvcombine
srikanthpadakanti 26ba22f
Remove the nomv related implementation as that command is still not y…
469b048
Remove the nomv related implementation as that command is still not y…
1259270
Remove the nomv related implementation as that command is still not y…
11fb3e0
Remove the nomv related implementation as that command is still not y…
22f542c
Merge branch 'opensearch-project:main' into feature/mvcombine
srikanthpadakanti 2771d0b
complete the checklist from ppl-commands.md
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
core/src/main/java/org/opensearch/sql/ast/tree/MvCombine.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /* | ||
| * Copyright OpenSearch Contributors | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package org.opensearch.sql.ast.tree; | ||
|
|
||
| import com.google.common.collect.ImmutableList; | ||
| import java.util.List; | ||
| import javax.annotation.Nullable; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.ToString; | ||
| import org.opensearch.sql.ast.AbstractNodeVisitor; | ||
| import org.opensearch.sql.ast.expression.Field; | ||
|
|
||
| @Getter | ||
| @ToString(callSuper = true) | ||
| @EqualsAndHashCode(callSuper = false) | ||
| public class MvCombine extends UnresolvedPlan { | ||
|
|
||
| private final Field field; | ||
| private final String delim; | ||
| @Nullable private UnresolvedPlan child; | ||
| private final boolean nomv; | ||
|
|
||
| public MvCombine(Field field, @Nullable String delim, boolean nomv) { | ||
| this.field = field; | ||
| this.delim = (delim == null) ? " " : delim; | ||
| this.nomv = nomv; | ||
| } | ||
|
|
||
| public MvCombine attach(UnresolvedPlan child) { | ||
| this.child = child; | ||
| return this; | ||
| } | ||
|
|
||
| @Override | ||
| public List<UnresolvedPlan> getChild() { | ||
| return child == null ? ImmutableList.of() : ImmutableList.of(child); | ||
| } | ||
|
|
||
| @Override | ||
| public <T, C> T accept(AbstractNodeVisitor<T, C> nodeVisitor, C context) { | ||
| return nodeVisitor.visitMvCombine(this, context); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.