Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@ public Enumerator<Object> enumerator() {
}

private List<String> getFieldPath() {
// If project pushdown occurred, use the actual projected field names from the context
for (PushDownOperation operation : pushDownContext) {
if (operation.type() == PushDownType.PROJECT) {
List<String> projectedFields = (List<String>) operation.digest();
return projectedFields.stream()
.map(f -> osIndex.getAliasMapping().getOrDefault(f, f))
.toList();
}
}

// If there was no project pushdown use logical field names with alias mapping
return getRowType().getFieldNames().stream()
.map(f -> osIndex.getAliasMapping().getOrDefault(f, f))
.toList();
Expand Down
Loading