[ai-assisted] fix(vector): points 조회 ORDER BY SQL 조립 수정#385
Merged
Conversation
Issue: - #384 Why: - Java text block의 줄 끝 공백 제거로 points 조회 SQL이 ORDER BYp.display_order 형태로 조립되어 PostgreSQL 문법 오류가 발생했다. What: - ORDER BY 절을 일반 문자열 helper로 생성해 ORDER BY와 정렬 표현식 사이 공백을 보장했다. - ORDER BY clause 조립 회귀 테스트를 추가했다. Validation: - ./gradlew :starter:studio-platform-starter-ai:test --tests '*JdbcVectorProjectionSqlTest' : PASS - ./gradlew :starter:studio-platform-starter-ai:test :starter:studio-platform-starter-ai-web:test && git diff --check : PASS - 로컬 PostgreSQL smoke: proj-20260430044829-105b3fa0 points query가 ORDER BY 포함 상태로 5건 조회됨
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.
Why
ORDER BYp.display_order형태의 PostgreSQL 문법 오류가 발생했습니다.GET /api/mgmt/ai/vectors/projections/{projectionId}/points가 500을 반환하고 Vector Map 산점도 렌더링이 진행되지 않았습니다.What
JdbcVectorProjectionSql.orderByDisplayOrderClause(...)를 추가해ORDER BY와 정렬 표현식 사이 공백을 일반 문자열에서 보장했습니다.JdbcVectorProjectionPointRepository.findPage()가 새 ORDER BY clause helper를 사용하도록 수정했습니다.Related Issues
Validation
./gradlew :starter:studio-platform-starter-ai:test --tests '*JdbcVectorProjectionSqlTest'./gradlew :starter:studio-platform-starter-ai:test :starter:studio-platform-starter-ai-web:test && git diff --checkproj-20260430044829-105b3fa0points query가ORDER BY포함 상태로 5건 조회됨scripts/run-dev.shvia detachedscreensessionTomcat started on port 8080확인curl -i 'http://localhost:8080/api/mgmt/ai/vectors/projections/proj-20260430044829-105b3fa0/points?limit=5&offset=0'401 Unauthorized로 라우팅 확인Risk / Rollback
AI / Subagent Usage
git diff --check, 로컬 PostgreSQL smoke query, 서버 재시작 및 라우팅 확인을 수행했습니다.Checklist
AI-Assistedvalue is correct