Closed Zouxxyy closed 2 months ago
We just need a pruneColumns(RowType requiredSchema)
.
RowType contains all the information (field name, field id, nested structure ... ), it can replace projection
The final API will be modified to like this
@Deprecated
default ReadBuilder withProjection(int[] projection) {
// projection -> requiredSchema
return pruneColumns(RowType requiredSchema);
}
ReadBuilder pruneColumns(RowType requiredSchema);
@JingsongLi Thanks for review, updated
Purpose
To #4209
public API
mark
ReadBuilder withProjection(int[][] projection)
andReadBuilder withProjection(int[] projection)
asDeprecated
how to use