zihaoAK47 commented on code in PR #25939:
URL: https://github.com/apache/shardingsphere/pull/25939#discussion_r1209650951
##########
parser/sql/statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/mysql/ddl/MySQLCreateIndexStatement.java:
##########
@@ -17,11 +17,24 @@
package org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.ddl;
+import lombok.Getter;
+import lombok.Setter;
+import
org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.table.AlgorithmTypeSegment;
+import
org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.table.LockTableSegment;
import
org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateIndexStatement;
import
org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.MySQLStatement;
+import java.util.Collection;
+import java.util.LinkedList;
+
/**
* MySQL create index statement.
*/
+@Setter
+@Getter
public final class MySQLCreateIndexStatement extends CreateIndexStatement
implements MySQLStatement {
+
+ private final Collection<AlgorithmTypeSegment> algorithmSegment = new
LinkedList<>();
Review Comment:
CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name
[index_type]
ON tbl_name (key_part,...)
[index_option]
[algorithm_option | lock_option] ...
Sorry, I misunderstood the rules of MySQL syntax and thought it was a multi
choice support.
`[algorithm_option | lock_option] ...`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]