You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/10/28 07:18:16 UTC
[GitHub] [shardingsphere] strongduanmu opened a new issue #13326: Support openGuass dialect SQL parse and execute
strongduanmu opened a new issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326
## Feature Request
### Is your feature request related to a problem?
#11026 #11025
### Describe the feature you would like.
At present, the master branch already supports the `openGuass` database. Most of the syntax of `openGuass` is the same as `PostgreSQL`. We can use the `PostgreSQL` parser directly, but there are some dialects of `openGuass` that are still not supported.
Therefore, in order to improve the support of `openGuass` dialect, we need to enhance the existing `openGuass` parser so that it can easily expand the unique statement parsing on the basis of inheriting the PostgreSQL parser, and support these statements execute.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tuichenchuxin commented on issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326#issuecomment-958668794
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu closed issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu commented on issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326#issuecomment-954495486
After some investigation, we found that `antlr4` can support simple rule inheritance. As shown in the figure below, the `MyElang` rule inherits the `Elang` rule and at the same time override the expr rule.

However, the function of rule inheritance in `antlr4` is very simple and cannot support rule inheritance under different directories and modules. Considering that `openGauss` and `PostgreSQL` parsing engines are different independent modules, we have to give up this solution.

In order to facilitate the maintenance of the openGauss dialect and avoid affecting the existing PostgreSQL parsing engine, we decided to create an independent openGauss parsing engine.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tuichenchuxin commented on issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326#issuecomment-958668794
@strongduanmu I want to try it.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tuichenchuxin commented on issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326#issuecomment-958668794
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu commented on issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326#issuecomment-999469704
Already support.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tuichenchuxin edited a comment on issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
tuichenchuxin edited a comment on issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326#issuecomment-958745401
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tuichenchuxin commented on issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326#issuecomment-958745401
## Background
Recently, We plan to fully support the openGauss database . Currently protocol is already supported, so we only need to add openGauss's antlr grammar.
## Design
1. add antlr g4 for openGauss.
2. add test case.

## Task
- [ ] add antlr g4 for openGauss.
- [ ] support openGauss parse.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tuichenchuxin commented on issue #13326: Support openGuass dialect SQL parse and execute
Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #13326:
URL: https://github.com/apache/shardingsphere/issues/13326#issuecomment-958668794
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org