You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "ccxxxyy (via GitHub)" <gi...@apache.org> on 2026/03/19 09:56:46 UTC

Re: [PR] Support parsing Doris CLEAN PROFILE and PLAN REPLAYER PLAY syntax [shardingsphere]

ccxxxyy commented on PR #38487:
URL: https://github.com/apache/shardingsphere/pull/38487#issuecomment-4089000441

   @terrymanu Hello! Thank you for your reply and guidance. I have made the corresponding revisions and would greatly appreciate it if you could take the time to review them. Below is a summary of the changes in this latest commit https://github.com/apache/shardingsphere/pull/38487/changes/a3660ae90007a2ce041b2556885219663a83bb33:
   
   - Added two assertions and test cases (**SELECT plan FROM t_plan** and **SELECT replayer FROM t_replayer**) in `src/main/resources/case/dml/select.xml` and `src/main/resources/sql/supported/dml/select.xml` as counterexamples. All assertion tests passed, verifying that **PLAN** and **REPLAYER** can be successfully used as identifiers ( **PLAY** is treated as a reserved keyword by [Doris](https://doris.apache.org/docs/4.x/sql-manual/basic-element/reserved-keywords)). This aligns with Doris semantics.
   
   - The syntax for **PLAN REPLAYER DUMP** will not be included in the scope or objectives of this PR. The core goal of this PR is to support syntax parsing, while the PLAN REPLAYER DUMP syntax involves inner SELECT that requires integration into the existing binder/context flow. The special handling required would overcomplicate this PR; To prevent the current parsing-only support from affecting other process flows, this PR does not implement parsing for the PLAN/REPLAYER/DUMP syntax. When needed can address the parsing and wrap inner SELECT into a dedicated statement context in a subsequent iteration.
   
   - All modifications made in `DALStatement.g4`, `DorisKeyword.g4`, and `BaseRule.g4` have been marked with **// DORIS ADDED BEGIN** and **// DORIS ADDED END** to facilitate future maintenance and avoid unintended impacts.
   
   Thank you for your feedback and time!


-- 
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