cshuo commented on code in PR #19842:
URL: https://github.com/apache/hudi/pull/19842#discussion_r3953662021
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/format/cow/CopyOnWriteInputFormat.java:
##########
@@ -158,8 +168,7 @@ public void open(FileInputSplit fileSplit) throws
IOException {
}
private ClosableIterator<RowData> getLanceRecordIterator(Path path) {
- return FormatUtils.getLanceRecordIterator(
- path.toString(), Arrays.asList(fullFieldNames),
Arrays.asList(fullFieldTypes), selectedFields, conf.conf());
+ return FormatUtils.getLanceRecordIterator(path.toString(),
requestedSchema, conf.conf());
Review Comment:
Addressed. requestedSchema is now lazily constructed and cached through
getRequestedSchema() only when reading a Lance file.
--
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]