shuke987 opened a new pull request, #62452:
URL: https://github.com/apache/doris/pull/62452
## Problem
`check_hash_bucket_table` iterates over all databases and tables in the
cluster.
When a table or database name is a SQL reserved keyword (e.g. `order`),
statements
like `SHOW CREATE TABLE order` fail with:
```
mismatched input 'order' expecting {...}
```
This causes the case to fail on P0Regression (where test residue can leave
tables
with reserved-keyword names) while passing on CloudP0 (clean environment).
## Fix
Add backtick quoting to all identifier references in the case:
- `USE \`${db}\``
- `SHOW CREATE TABLE \`${tblName}\``
- `SHOW PARTITIONS FROM \`${tblName}\``
- `SHOW REPLICA STATUS FROM \`${tblName}\` PARTITION(\`${partitionName}\`)`
- `DESC \`${tblName}\` ALL`
- `SELECT ... FROM \`${db}\`.\`${tblName}\` TABLET(...)`
## Test
Verified locally: case passes with the fix applied.
Root cause: case issue (unquoted identifiers), not a product bug.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]