@Override
  public boolean isDistanceGreaterPrimitive(Double l1Seconds, Double l2Seconds, int amt) {
    if (l1Seconds != null && l2Seconds != null) {
      // TODO: lossy conversion, distance is considered in seconds
      return (double) (l1Seconds - l2Seconds) / 1000 > amt;
    }
    return l1Seconds != null || l2Seconds != null; // True if only one value is null
  }
Calculates ranges on doubles representing timestamps in milliseconds returned by
TimestampColumnVector.getDouble(i). Refer to VectorPTFGroupBatches.getValue for TIMESTAMP.
ql/src/java/org/apache/hadoop/hive/ql/udf/ptf/ValueBoundaryScanner.java