Select the given subset of field names (fields) from rdd and return a subset of the schema with a new RDD with the values reordered by the fields name list.
Map the input columns (as specified in inputType) to the target columns (as specified by targetType)
Map the input columns (as specified in inputType) to the target columns (as specified by targetType)
Either None if the targetType has exactly the same columns as inputType
or An array of size equal to targetType.fields.size containing a mapping of targetType fields to inputType fields