dlupan / dorisparser Goto Github PK
View Code? Open in Web Editor NEWDorisDB SQL解析器Java实现;Clickhouse SQL解析器Java实现
License: Apache License 2.0
DorisDB SQL解析器Java实现;Clickhouse SQL解析器Java实现
License: Apache License 2.0
@test
public void selctTableModifyColumnTest() {
String sql = "SELECT a ,app,b from record.filter_record_all where a>1 ;";
ClickHouseLexer lexer = new ClickHouseLexer(CharStreams.fromString(sql));
CommonTokenStream commonTokenStream = new CommonTokenStream(lexer);
ClickHouseParser parser = new ClickHouseParser(commonTokenStream);
parser.addErrorListener(ClickHouseErrorListener.INSTANCE);
ClickHouseParser.QueryStmtContext queryStmtContext = parser.queryStmt();
QueryStmtVisitor visitor = new QueryStmtVisitor().init();
queryStmtContext.accept(visitor);
System.out.println(visitor.getParserVo());
}
output:
columnDefList=[], tableName=filter_record_all, newTableName=null, tableChinese=null, tableDesc=null, dbName=record
没有select后面的字段,where后面的也没有?
辛苦了~~
大佬,clickhouse的解析器是否完成,有没有使用例子
<plugin>
<groupId>net.sourceforge.czt.dev</groupId>
<artifactId>cup-maven-plugin</artifactId>
<version>1.6-cdh</version>
这个插件,我这边下载不下来,找不到
可以新增对Doris STRING 类型的支持吗,我自己魔改了一下,勉强能用,但是改得不够全面,希望能支持一下
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.