Skip to content

Commit 7125fb6

Browse files
committed
Move SqlBasicVisitor to import header
Signed-off-by: Kai Huang <ahkcs@amazon.com>
1 parent 543e32c commit 7125fb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/src/main/java/org/opensearch/sql/plugin/rest/RestUnifiedQueryAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.apache.calcite.sql.SqlJoin;
1919
import org.apache.calcite.sql.SqlNode;
2020
import org.apache.calcite.sql.SqlSelect;
21+
import org.apache.calcite.sql.util.SqlBasicVisitor;
2122
import org.apache.logging.log4j.LogManager;
2223
import org.apache.logging.log4j.Logger;
2324
import org.apache.logging.log4j.ThreadContext;
@@ -189,8 +190,7 @@ public String visitRelation(Relation node, Void context) {
189190
}
190191

191192
/** SqlNode visitor that extracts the source table name from a SQL parse tree. */
192-
private static class SqlTableNameExtractor
193-
extends org.apache.calcite.sql.util.SqlBasicVisitor<String> {
193+
private static class SqlTableNameExtractor extends SqlBasicVisitor<String> {
194194
@Override
195195
public String visit(SqlCall call) {
196196
if (call instanceof SqlSelect select) {

0 commit comments

Comments
 (0)