Skip to content

Commit

Permalink
Add Doris grammar rules and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilv committed Dec 26, 2024
1 parent aa412d3 commit 99b0097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisKillStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisLoadIndexInfoStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisOptimizeTableStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisRecoverDatabaseStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisRecoverPartitionStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisRecoverTableStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisRepairTableStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisResetPersistStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisResetStatement;
Expand Down Expand Up @@ -216,17 +218,14 @@
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisUninstallComponentStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisUninstallPluginStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisUseStatement;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.ResetMasterOptionSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.ResetOptionSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.ResetSlaveOptionSegment;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisRecoverDatabaseStatement;
import org.apache.shardingsphere.sql.parser.statement.doris.dal.DorisRecoverTableStatement;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

import static org.apache.shardingsphere.sql.parser.autogen.DorisStatementParser.*;
import org.apache.shardingsphere.sql.parser.autogen.DorisStatementParser.RecoverDatabaseContext;
import org.apache.shardingsphere.sql.parser.autogen.DorisStatementParser.RecoverPartitionContext;
import org.apache.shardingsphere.sql.parser.autogen.DorisStatementParser.RecoverTableContext;

/**
* DAL statement visitor for Doris.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import lombok.Getter;
import lombok.Setter;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.TableNameSegment;
import org.apache.shardingsphere.sql.parser.statement.core.statement.AbstractSQLStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DDLStatement;

Expand Down

0 comments on commit 99b0097

Please sign in to comment.