feat: add Tdengine parser and examples#4614
Conversation
migrate from the parse module of TDengine. Signed-off-by: zhouyx <zhou_8621@gmail.com>
|
You might want to check the ambiguity and parse tree result for some of your tests. Here are all the possible parse trees for select.sql. There's ambiguity in columnReference because "ts" in line 3 of select.sql can be either a columnName or columnAlias because both can match NK_ID. The other ambiguity is with commonExpression/exprOrSubquery and commonExpression/booleanValueExpression. The ambiguity is detected in select.sql in line 5, with the expression after the "WHERE". The problem here is that you're trying to enter into an exprOrSubquery, but that references expression. This type of problem occurs in other grammars, but I haven't figured out a good way to split up an Antlr optimized left-recursive expression. You might want to include a readme.md so we can see where this is all coming from. |
|
Thank you for the review. I will try to resolve the ambiguity |
Signed-off-by: Dream95 <zhou_8621@163.com>
Signed-off-by: Dream95 <zhou_8621@163.com>
|
This grammar is based on:
|
migrate from the parse module of TDengine.