godfreyhe opened a new pull request #4667: [FLINK-5859] [table] Add PartitionableTableSource for partition pruning URL: https://github.com/apache/flink/pull/4667 ## What is the purpose of the change This pull request adds PartitionableTableSource for partition pruning when optimizing the query plan. That way both query optimization time and execution time can be reduced obviously, especially for a large partitioned table. ## Brief change log - *Adds PartitionableTableSource which extends FilterableTableSource* - *Adds setRelBuilder method in FilterableTableSource class* - *Adds implementation for partition pruning and extracting partition predicates* ## Verifying this change This change added tests and can be verified as follows: - *Added integration tests for PartitionableTableSource on batch and stream sql* - *Added test that validates the correct of partition pruning* - *Added test that validates the correct of extracting partition predicates* ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (no) - The runtime per-record code paths (performance sensitive): (no) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no) ## Documentation - Does this pull request introduce a new feature? (yes) - If yes, how is the feature documented? (JavaDocs)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services