presto-spi/src/main/java/io/prestosql/spi/predicate/Range.java/Range/checkTypeCompatibility
class Range:    private void checkTypeCompatibility(Marker marker)
    {
        if (!getType().equals(marker.getType())) {
            throw new IllegalArgumentException(format("Marker of %s does not match Range of %s", marker.getType(), getType()));
        }
    }