[FLINK-30323] Support table statistics in table store
Support table statistics in table store
Hi @JingsongLi I have rebase from master for this PR, could you help to review again when you get time? THX
I need to reorganize Flink-connector's modules recently, and we can continue to work after that.
Hi @JingsongLi I have updated this PR, please help to review it again, thanks
@FangYongs Thanks for the update.
I have thoughts here:
- We should avoid copying too much code. I think there is a chance to avoid it
- plan is a heavy work, we can avoid it, we can produce splits in compilation phase, and pass these splits to runtime source. Like in https://github.com/apache/flink-table-store/pull/584
Hi @JingsongLi I have rebase master for this PR, please help to review it when you're free, thanks
We should avoid copying
AbstractFlinkTableFactory. We can use less codes to fix this.
Then maybe we need to create a factory for DataTableSource, it will create DataTableSource for flink-1.14/flink-1.15 and create StatisticsDataTableSource for the later version of flink. What do you think?
We should avoid copying
AbstractFlinkTableFactory. We can use less codes to fix this.Then maybe we need to create a factory for DataTableSource, it will create DataTableSource for flink-1.14/flink-1.15 and create StatisticsDataTableSource for the later version of flink. What do you think?
We can do like https://github.com/apache/incubator-paimon/pull/1010 , this may not look good, but we definitely need to avoid copying large amounts of code, which can be difficult to maintain.
We should avoid copying
AbstractFlinkTableFactory. We can use less codes to fix this.Then maybe we need to create a factory for DataTableSource, it will create DataTableSource for flink-1.14/flink-1.15 and create StatisticsDataTableSource for the later version of flink. What do you think?
We can do like #1010 , this may not look good, but we definitely need to avoid copying large amounts of code, which can be difficult to maintain.
Looks good to me, I have rebased master and updated this PR