presto-main/src/main/java/io/prestosql/util/SpatialJoinUtils.java/SpatialJoinUtils/isSupportedSpatialComparison
class SpatialJoinUtils:    private static boolean isSupportedSpatialComparison(ComparisonExpression expression)
    {
        switch (expression.getOperator()) {
            case LESS_THAN:
            case LESS_THAN_OR_EQUAL:
                return isSTDistance(expression.getLeft());
            case GREATER_THAN:
            case GREATER_THAN_OR_EQUAL:
                return isSTDistance(expression.getRight());
            default:
                return false;
        }
    }