@Override
  public boolean isDistanceGreaterPrimitive(Long l1Seconds, Long l2Seconds, int amt) {
    if (l1Seconds != null && l2Seconds != null) {
      // TODO: lossy conversion, distance is considered seconds similar to timestamp
      return (l1Seconds - l2Seconds) > amt;
    }
    return l1Seconds != null || l2Seconds != null; // True if only one value is null
  }
Calculates ranges on longs representing localtz timestamps in seconds returned by
IntervalDayTimeColumnVector.getTotalSeconds. Refer to VectorPTFGroupBatches.getValue for
INTERVAL_DAY_TIME.
ql/src/java/org/apache/hadoop/hive/ql/udf/ptf/ValueBoundaryScanner.java