code: public static org.apache.arrow.vector.types.pojo.Schema toArrowSchema(Schema schema) {
          List<Field> fields = new ArrayList<>(schema.numColumns());
          for(int i = 0; i < schema.numColumns(); i++) {
              fields.add(getFieldForColumn(schema.getName(i),schema.getType(i)));
          }
  
          return new org.apache.arrow.vector.types.pojo.Schema(fields);
      }
docs: Convert a data vec {@link Schema}
  to an arrow {@link org.apache.arrow.vector.types.pojo.Schema}
  @param schema the input schema
  @return the schema for arrow