forked from github/dataease
refactor: 使用Calcite新方法替换过时方法
This commit is contained in:
parent
7f1e1554e2
commit
5344368145
@ -43,10 +43,9 @@ public class SqlparserUtils {
|
||||
}
|
||||
|
||||
SqlParser.Config config =
|
||||
SqlParser.configBuilder()
|
||||
.setLex(Lex.JAVA)
|
||||
.setIdentifierMaxLength(256)
|
||||
.build();
|
||||
SqlParser.config()
|
||||
.withLex(Lex.JAVA)
|
||||
.withIdentifierMaxLength(256);
|
||||
SqlParser sqlParser = SqlParser.create(tmpSql, config);
|
||||
SqlNode sqlNode;
|
||||
try {
|
||||
|
@ -21,10 +21,9 @@ public class SqlUtils {
|
||||
}
|
||||
|
||||
SqlParser.Config config =
|
||||
SqlParser.configBuilder()
|
||||
.setLex(Lex.JAVA)
|
||||
.setIdentifierMaxLength(256)
|
||||
.build();
|
||||
SqlParser.config()
|
||||
.withLex(Lex.JAVA)
|
||||
.withIdentifierMaxLength(256);
|
||||
// 创建解析器
|
||||
SqlParser sqlParser = SqlParser
|
||||
.create(sql, config);
|
||||
|
Loading…
Reference in New Issue
Block a user