fix: parent_resolution JOIN 타이밍 갭 허용 #226

병합
htlee hotfix/join-timing-tolerance 에서 main 로 2 commits 를 머지했습니다 2026-04-06 07:09:18 +09:00
Showing only changes of commit ed618f6dd0 - Show all commits

파일 보기

@ -1409,7 +1409,7 @@ public class GroupPolygonService {
.members(members)
.color(rs.getString("color"))
.resolution(rs.getString("resolution"))
.candidateCount(nullableInt(rs, "candidate_count"))
.candidateCount(optionalInt(rs, "candidate_count"))
.parentInference(mapParentInferenceSummary(rs))
.build();
}
@ -1566,6 +1566,15 @@ public class GroupPolygonService {
return ((Number) value).intValue();
}
/** 컬럼이 ResultSet에 존재하지 않으면 null 반환 (history/detail SQL 호환) */
private Integer optionalInt(ResultSet rs, String column) throws SQLException {
try {
return nullableInt(rs, column);
} catch (SQLException e) {
return null;
}
}
private Map<String, Object> parseJsonObject(String json) {
return parseJsonValue(json, new TypeReference<Map<String, Object>>() {}, Map.of());
}