Created
November 9, 2019 12:53
-
-
Save masayuki038/8a340b7c2a9e9646541c903008e45416 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onMatch(RelOptRuleCall call) { | |
LogicalProject project = call.rel(0); | |
AvroTableScan scan = call.rel(1); | |
Integer[] fields = getProjectFields(project.getProjects()); | |
call.transformTo( | |
new AvroTableScan(scan.getCluster(), scan.getTable(), fields) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment