presto-spi/src/main/java/io/prestosql/spi/type/ShortDecimalType.java/ShortDecimalType/compareTo
class ShortDecimalType:    @Override
    public int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition)
    {
        long leftValue = leftBlock.getLong(leftPosition, 0);
        long rightValue = rightBlock.getLong(rightPosition, 0);
        return Long.compare(leftValue, rightValue);
    }