Skip to content

Commit

Permalink
update syntax from project to view
Browse files Browse the repository at this point in the history
Signed-off-by: YANGDB <[email protected]>
  • Loading branch information
YANG-DB committed Dec 13, 2024
1 parent bfbb555 commit 0d55aa8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package org.opensearch.flint.spark.ppl
import java.nio.file.{Files, Paths}

import org.apache.spark.sql.{AnalysisException, QueryTest, Row}
import org.apache.spark.sql.catalyst.TableIdentifier
import org.apache.spark.sql.catalyst.analysis.{UnresolvedAttribute, UnresolvedFunction, UnresolvedIdentifier, UnresolvedRelation, UnresolvedStar}
import org.apache.spark.sql.catalyst.expressions.{Alias, Ascending, Descending, Divide, EqualTo, Floor, GreaterThan, IsNotNull, Literal, Multiply, Not, Or, SortOrder}
import org.apache.spark.sql.catalyst.plans.Inner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ commandName
| EVAL
| GROK
| PARSE
| PROJECT
| PATTERNS
| LOOKUP
| RENAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public T visitView(View node, C context) {
return visitChildren(node, context);
}

public T visitProjectStatement(ViewStatement node, C context) {
public T visitViewStatement(ViewStatement node, C context) {
return visitChildren(node, context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public QualifiedName getTableQualifiedName() {

@Override
public <R, C> R accept(AbstractNodeVisitor<R, C> visitor, C context) {
return visitor.visitProjectStatement(this, context);
return visitor.visitViewStatement(this, context);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public LogicalPlan visitFirstChild(Node node, CatalystPlanContext context) {
}

@Override
public LogicalPlan visitProjectStatement(ViewStatement node, CatalystPlanContext context) {
public LogicalPlan visitViewStatement(ViewStatement node, CatalystPlanContext context) {
node.getStatement().accept(this, context);
return context.apply(p -> ViewUtils.visitView(p, node, context));
}
Expand Down

0 comments on commit 0d55aa8

Please sign in to comment.