presto-main/src/main/java/io/prestosql/sql/planner/plan/SpatialJoinNode.java/SpatialJoinNode/fromJoinNodeType
class SpatialJoinNode:        public static Type fromJoinNodeType(JoinNode.Type joinNodeType)
        {
            switch (joinNodeType) {
                case INNER:
                    return Type.INNER;
                case LEFT:
                    return Type.LEFT;
                default:
                    throw new IllegalArgumentException("Unsupported spatial join type: " + joinNodeType);
            }
        }