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/29 07:27:17 UTC

[GitHub] [shardingsphere] strongduanmu commented on issue #13326: Support openGuass dialect SQL parse and execute

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.
   
   ![image](https://user-images.githubusercontent.com/10829171/139392693-20000905-74ba-41bc-a90a-2deb578bd705.png)
   
   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.
   
   ![image](https://user-images.githubusercontent.com/10829171/139393004-2d2e0480-0897-4047-b5ac-e45b2f5abe85.png)
   
   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