Display data partition repair progress by providing a new SQL statement#17637
Conversation
…repair-data-partiton-progress
…repair-data-partiton-progress
CRZbulabula
left a comment
There was a problem hiding this comment.
Thanks for the feature — the end-to-end plumbing follows the existing statement pipeline well. I left inline comments on specific lines. One important item cannot be anchored inline because the file is not touched by this PR, so I'm raising it here:
[Must fix] iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IdentifierParser.g4 (keyWords rule, ~line 191)
The new PROGRESS lexer token added in SqlLexer.g4 is not registered in the keyWords rule. REPAIR, PARTITION, and TABLE are all present there, but PROGRESS is missing. As a result, any existing identifier or timeseries node named progress (e.g. SELECT progress FROM root.x or root.sg.d.progress) will fail to parse after this change — a backward-incompatible regression. Please add | PROGRESS to the list, alphabetically between PROCESSLIST and PROCESSOR:
| PROCESSLIST
| PROGRESS
| PROCESSOR
…repair-data-partiton-progress
…repair-data-partiton-progress
Use the sql to display progress:
SHOW REPAIR DATA PARTITION TABLE PROGRESS