public static UnsafeProjection createFromSchema(StructType schema) {
        return create(schema.fields.stream().map(f -> f.dataType).collect(Collectors.toList()));
    }
Returns an UnsafeProjection for given StructType.
indexr-query-opt/src/main/java/io/indexr/query/expr/project/UnsafeProjection.java