mirror of https://github.com/apache/druid.git
compare result timestamp based on millis + utcoffset
This commit is contained in:
parent
8f38b775ae
commit
d7ea8e9afc
|
@ -71,7 +71,7 @@ public class Result<T> implements Comparable<Result<T>>
|
|||
|
||||
Result result = (Result) o;
|
||||
|
||||
if (timestamp != null ? !timestamp.equals(result.timestamp) : result.timestamp != null) {
|
||||
if (timestamp != null ? !(timestamp.isEqual(result.timestamp) && timestamp.getZone().getOffset(timestamp) == result.timestamp.getZone().getOffset(result.timestamp)) : result.timestamp != null) {
|
||||
return false;
|
||||
}
|
||||
if (value != null ? !value.equals(result.value) : result.value != null) {
|
||||
|
|
Loading…
Reference in New Issue