-
Notifications
You must be signed in to change notification settings - Fork 179
Merge OpenSearchPagedIndexScan and OpenSearchIndexScan #1600
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
Changes from 36 commits
68db706
ef93375
306a7fe
7d5b126
dc2c471
91cea61
2ee810c
39ce902
fabd4ee
6eb0498
bdfe563
1f6b6f1
a8295e4
86429f8
4f5b69d
b1050dd
a16f2fa
eff76b2
8548d90
f4770a8
e350662
413087a
7e812e5
1daacbb
f1e1342
73f18df
60226be
fabb179
23bc3ab
264e483
97ef3a5
2cecaca
840c4a9
4c9e958
102706b
2f4b48b
33ad6dd
0abe298
1dc3320
701bce7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,6 +43,7 @@ | |||||
| import org.opensearch.sql.ast.tree.Aggregation; | ||||||
| import org.opensearch.sql.ast.tree.Dedupe; | ||||||
| import org.opensearch.sql.ast.tree.Eval; | ||||||
| import org.opensearch.sql.ast.tree.FetchCursor; | ||||||
| import org.opensearch.sql.ast.tree.Filter; | ||||||
| import org.opensearch.sql.ast.tree.Head; | ||||||
| import org.opensearch.sql.ast.tree.Kmeans; | ||||||
|
|
@@ -299,4 +300,8 @@ public T visitExplain(Explain node, C context) { | |||||
| public T visitPaginate(Paginate paginate, C context) { | ||||||
| return visitChildren(paginate, context); | ||||||
| } | ||||||
|
|
||||||
| public T visitCursor(FetchCursor cursor, C context) { | ||||||
| return visit(cursor, context); | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit
Suggested change
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lave for later |
||||||
| } | ||||||
| } | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| /* | ||
| * Copyright OpenSearch Contributors | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package org.opensearch.sql.ast.tree; | ||
|
|
||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.RequiredArgsConstructor; | ||
| import org.opensearch.sql.ast.AbstractNodeVisitor; | ||
|
|
||
| @RequiredArgsConstructor | ||
| @EqualsAndHashCode(callSuper = false) | ||
| public class FetchCursor extends UnresolvedPlan { | ||
Yury-Fridlyand marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| @Getter | ||
| final String cursor; | ||
|
|
||
| @Override | ||
| public <T, C> T accept(AbstractNodeVisitor<T, C> nodeVisitor, C context) { | ||
| return nodeVisitor.visitFetchCursor(this, context); | ||
| } | ||
|
|
||
| @Override | ||
| public UnresolvedPlan attach(UnresolvedPlan child) { | ||
| throw new UnsupportedOperationException("Cursor unresolved plan does not support children"); | ||
| } | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * Copyright OpenSearch Contributors | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package org.opensearch.sql.planner.logical; | ||
|
|
||
| import java.util.List; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.ToString; | ||
| import org.opensearch.sql.planner.logical.LogicalPlan; | ||
| import org.opensearch.sql.planner.logical.LogicalPlanNodeVisitor; | ||
| import org.opensearch.sql.storage.StorageEngine; | ||
|
|
||
| @EqualsAndHashCode(callSuper = false) | ||
| @ToString | ||
| public class LogicalFetchCursor extends LogicalPlan { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. javadoc? |
||
| @Getter | ||
| private final String cursor; | ||
|
|
||
| @Getter | ||
| private final StorageEngine engine; | ||
|
|
||
| /** | ||
| * LogicalCursor constructor. Does not have child plans. | ||
| */ | ||
| public LogicalFetchCursor(String cursor, StorageEngine engine) { | ||
| super(List.of()); | ||
| this.cursor = cursor; | ||
| this.engine = engine; | ||
| } | ||
|
|
||
| @Override | ||
| public <R, C> R accept(LogicalPlanNodeVisitor<R, C> visitor, C context) { | ||
| return visitor.visitCursor(this, context); | ||
Yury-Fridlyand marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.