hililiwei commented on code in PR #3991:
URL: https://github.com/apache/iceberg/pull/3991#discussion_r849494169
##########
flink/v1.14/flink/src/main/java/org/apache/iceberg/flink/data/RowDataProjection.java:
##########
@@ -134,11 +176,26 @@ private static RowData.FieldGetter
createFieldGetter(RowType rowType,
public RowData wrap(RowData row) {
this.rowData = row;
+ this.valueCache.clear();
return this;
}
private Object getValue(int pos) {
- return getters[pos].getFieldOrNull(rowData);
+ return valueCache.computeIfAbsent(pos, key -> {
+ Object value = null;
+ if (projectedFields != null) {
Review Comment:
Fetch data from iceberg nested struct data according to `projectedFields`
and the field pos in flink output schema
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]