@Override
    public int size() {
        return type.fields().size();
    }
Creates a projecting wrapper for {@link Record} rows.

<p>This projection does not work with repeated types like lists and maps.

@param dataSchema      schema of rows wrapped by this projection
@param projectedSchema result schema of the projected rows
@return a wrapper to project rows
core/src/main/java/kafka/automq/table/worker/RecordProjection.java