[ https://issues.apache.org/jira/browse/PHOENIX-3161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15591590#comment-15591590 ]
Ankit Singhal commented on PHOENIX-3161: ---------------------------------------- Below code should give smallest value of minTimeStamp only right? {code} long minTimeStamp = 0; // get the minimum timestamp across all the mutations we attempted on that table Collection<Mutation> mutations = attempted.get(ref); if (mutations != null) { for (Mutation m : mutations) { for (List<Cell> kvs : m.getFamilyCellMap().values()) { for (Cell kv : kvs) { if (minTimeStamp == 0 || (kv.getTimestamp() >= 0 && minTimeStamp > kv.getTimestamp())) { minTimeStamp = kv.getTimestamp(); } } } } } {code} > Check possibility of moving rebuilding code to coprocessor of data table. > ------------------------------------------------------------------------- > > Key: PHOENIX-3161 > URL: https://issues.apache.org/jira/browse/PHOENIX-3161 > Project: Phoenix > Issue Type: Sub-task > Reporter: Ankit Singhal > Assignee: Ankit Singhal > Fix For: 4.9.0 > > Attachments: PHOENIX-3161.patch, PHOENIX-3161_v1.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)