fix(crud): 统一查询分析器列名解析#359
Merged
zhou-hao merged 3 commits intoJul 16, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
核心变动
QueryAnalyzerImpl.findColumn精确匹配失败后回退到 snake_casefindColumn,保留精确别名优先级r2dbc-postgresqltest-scope 依赖,并在查询分析器测试间清理共享 H2 数据设计与测试目标
测试结果
JAVA_HOME=<JDK17> PATH=<JDK17>/bin:$PATH ./mvnw test -q -pl "$(./changes.sh)"QueryAnalyzerImplTest覆盖 camelCase、嵌套限定列名、精确别名优先、未知列拒绝、CTE owner 缓存与测试数据隔离QueryAnalyzerImplTest60 passedAggregationQueryHelperImplTest15 passed, 0 failed, 0 skipped;原始alarmTime -> alarm_time场景 1 passedQueryAnalyzerImplline 86.8%, branch 74.7%文档同步情况
风险与说明