Mryange opened a new pull request, #71135:
URL: https://github.com/apache/doris/pull/71135
### What problem does this PR solve?
Issue Number: None
Related PR: #67052
Problem Summary:
Backport #67052 to branch-4.2. Dictionary refresh builds an internal INSERT
from dictionary and source table names. Names containing dots, spaces, or
backticks can be parsed incorrectly when concatenated as raw SQL.
Quote each identifier component with the Nereids helper. Restore the
previous dictionary status on refresh preparation errors and preserve scheduled
statement-context cleanup on 4.2.
### Release note
Dictionary refresh correctly quotes dictionary and source table names in
generated SQL.
### Testing
- `bash run-fe-ut.sh --run
org.apache.doris.dictionary.DictionaryManagerTest` passed all 8 cases,
including the new parser test.
- Checkstyle passed for both modified Java files.
Pre-submission status: Ready for review. Validation covered the targeted FE
suite. The full FE suite and cluster regression tests were outside this
backport check.
### Check List (For Author)
- Test
- [x] Unit Test
- Behavior changed
- [x] Yes. Dictionary refresh preserves the intended identifier
components in generated SQL.
- Does this need documentation?
- [x] No.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]