-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-5185] [Table API & SQL] Decouple BatchTableSourceScan with TableSourceTable #2921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test Plan: junit Reviewers: kete.yangkt Differential Revision: http://phabricator.taobao.net/D6601
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me.
table: RelOptTable, | ||
rowType: RelDataType) | ||
extends BatchScan(cluster, traitSet, table, rowType) { | ||
val tableSource: BatchTableSource[_]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to declare this field as val
? It seems that it is only used in this class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wuchong , Thanks for your review. For later use, the projection pushdown rule needs to get the actual tablesource of the BatchTableSourceScan, then do something on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get you !
Thanks for the PR @beyond1920! |
merging |
…ourceScan. This closes apache#2921.
…ourceScan. This closes apache#2921.
…ourceScan. This closes apache#2921.
…ourceScan. This closes apache#2921.
The pr aims to decouple BatchTableSourceScan with TableSourceTable for further optimization, e.g, projection pushdown/filter pushdown/query pushdown. The principle is let BatchTableSourceScan directly holding TableSource instead of holding TableSourceTable.
The main changes including: