You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/10/12 07:14:47 UTC

[GitHub] [incubator-iotdb] Ring-k commented on issue #440: reconstruct antlrv3 grammar to improve performance

Ring-k commented on issue #440: reconstruct antlrv3 grammar to improve performance
URL: https://github.com/apache/incubator-iotdb/pull/440#issuecomment-541295084
 
 
   The core idea of this reconstruction is
   1. The statement is now grouped as ddlStatement, dmlStatement, and administrationStatement, which is more consistent with the conventional sql design.
   2. I reorganize the format of constant. In previous version, we have negetive integer, positive integer, usigned integer, etc. To aviod problems of longest match, we need to use "=>" operator. This operator is widely used in previous version. I simplified the grammer definition by just defining the integer and real numbers, regardless of the sign. No "=>" operator anymore. Althought, some acceptable constraints are introduced, like "+" is not allowed to identify a positive value. I think because of less checkings during parsing, the performance is improved, especially in parsing full-digit paths.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services