You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "melin (via GitHub)" <gi...@apache.org> on 2023/07/06 11:03:50 UTC
[GitHub] [doris] melin opened a new issue, #21586: [Feature] doris 提供完整的antlr4 语法文件?
melin opened a new issue, #21586:
URL: https://github.com/apache/doris/issues/21586
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Description
数据血缘解析需要用到antlr4语法文件:https://github.com/melin/superior-sql-parser/
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] caicancai commented on issue #21586: [Feature] doris 提供完整的antlr4 语法文件?
Posted by "caicancai (via GitHub)" <gi...@apache.org>.
caicancai commented on issue #21586:
URL: https://github.com/apache/doris/issues/21586#issuecomment-1642103789
但目前antlr4的官方g4文件并没有完全兼容mysql语法
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Feature] doris 提供完整的antlr4 语法文件? [doris]
Posted by "smlHao (via GitHub)" <gi...@apache.org>.
smlHao commented on issue #21586:
URL: https://github.com/apache/doris/issues/21586#issuecomment-1827221854
> > > 用到antlr4语法文件
> >
> >
> > @melin 大佬,血缘解析是咋做的,有没有demo可以学习下?
>
> 可以参考这个项目:https://github.com/melin/sqlflow
@melin 大佬。可以加您微信或者钉钉吗?
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] melin commented on issue #21586: [Feature] doris 提供完整的antlr4 语法文件?
Posted by "melin (via GitHub)" <gi...@apache.org>.
melin commented on issue #21586:
URL: https://github.com/apache/doris/issues/21586#issuecomment-1641389599
DorisParser.g4 只是部分的sql,猜测doris 以前是手写的解析器,后来新增加的sql,用antlr4解析语法,没有完全替换掉。
Starrocks 已经完全替换为antlr4 解析sql。
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Feature] doris 提供完整的antlr4 语法文件? [doris]
Posted by "melin (via GitHub)" <gi...@apache.org>.
melin commented on issue #21586:
URL: https://github.com/apache/doris/issues/21586#issuecomment-1827125123
> > 用到antlr4语法文件
>
> @melin 大佬,血缘解析是咋做的,有没有demo可以学习下?
可以参考这个项目:https://github.com/melin/sqlflow
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] sksksksy commented on issue #21586: [Feature] doris 提供完整的antlr4 语法文件?
Posted by "sksksksy (via GitHub)" <gi...@apache.org>.
sksksksy commented on issue #21586:
URL: https://github.com/apache/doris/issues/21586#issuecomment-1641319256

--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] sksksksy commented on issue #21586: [Feature] doris 提供完整的antlr4 语法文件?
Posted by "sksksksy (via GitHub)" <gi...@apache.org>.
sksksksy commented on issue #21586:
URL: https://github.com/apache/doris/issues/21586#issuecomment-1641458399
是的,查了下,doris使用jflex,cup,antlr4三种方式来生成sql解析部分代码的
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Feature] doris 提供完整的antlr4 语法文件? [doris]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #21586: [Feature] doris 提供完整的antlr4 语法文件?
URL: https://github.com/apache/doris/issues/21586
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Feature] doris 提供完整的antlr4 语法文件? [doris]
Posted by "smlHao (via GitHub)" <gi...@apache.org>.
smlHao commented on issue #21586:
URL: https://github.com/apache/doris/issues/21586#issuecomment-1827085777
> 用到antlr4语法文件
@melin 大佬,血缘解析是咋做的,有没有demo可以学习下?
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Feature] doris 提供完整的antlr4 语法文件? [doris]
Posted by "melin (via GitHub)" <gi...@apache.org>.
melin commented on issue #21586:
URL: https://github.com/apache/doris/issues/21586#issuecomment-1765683271
> 但目前antlr4的官方g4文件并没有完全兼容mysql语法
有mysql 比较完成sql 语法文件:https://github.com/antlr/grammars-v4/tree/master/sql
doris 只是兼容mysql client 协议,不是兼容mysql 语法,不像tidb tp数据库,兼容mysql 语法。
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org