voonhous commented on code in PR #13147:
URL: https://github.com/apache/hudi/pull/13147#discussion_r3401823692
##########
hudi-timeline-service/src/main/java/org/apache/hudi/timeline/service/handlers/TimelineHandler.java:
##########
@@ -46,4 +61,151 @@ public List<InstantDTO> getLastInstant(String basePath) {
public TimelineDTO getTimeline(String basePath) {
return
TimelineDTO.fromTimeline(viewManager.getFileSystemView(basePath).getTimeline());
}
+
+ public org.apache.hudi.common.table.timeline.dto.v2.TimelineDTO
getTimelineV2(String basePath) {
Review Comment:
Done. Renamed the v2 `TimelineDTO` to `TimelineDTOV2` (file renamed via `git
mv` to keep history). `RequestHandler` and `TimelineHandler` now import and use
`TimelineDTOV2` instead of the fully-qualified name, so it reads cleanly
alongside the v1 `TimelineDTO`. JSON wire format is unchanged (serialization is
by `@JsonProperty` field names, not the class name). Left the v2 `InstantDTO`
as-is since it is only referenced within its package and was not flagged, but
happy to rename it for symmetry if you prefer.
--
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]