iyupeng opened a new pull request #17344:
URL: https://github.com/apache/flink/pull/17344


   
   ## What is the purpose of the change
   
   This pull request follows #14894 which has been inactive for months.
   This pull request addresses review comments in the existing pull request and 
is based on the existing one.
   All the code changes are targeted to make it possible to push down local 
aggregations from computing layer to storage layer for better computing & I/O 
performance.
   This feature is disabled by default.
   
   ## Brief change log
   
    - *Add a new configuration of 
`table.optimizer.source.aggregate-pushdown-enabled` to control the aggregation 
push down, and the default value is `false` which is up to the users to decide 
enable it or not.*
    - *Add an abstract class of `PushLocalAggIntoScanRuleBase` for supporting 
both with and without sort operator.*
    - *Add a new rule of `PushLocalSortAggWithoutSortIntoScanRule` for sort 
aggregation without sort case.*
    - *Add a new rule of `PushLocalSortAggWithSortIntoScanRule` for sort 
aggregation with sort case.*
    - *Add a new rule of `PushLocalHashAggIntoScanRule` for hash aggregation 
case.*
    - *Add new push down spec `AggregatePushDownSpec` to serialize/deserialize 
aggregations.*
    - *Implement the `SupportsAggregatePushDown` interface for 
`TestValuesScanTableSource`.*
    - *Some other unit tests and integration tests.*
   
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
     - *Added unit test class `PushLocalAggIntoTableSourceScanRuleTest` for 
plan verifications*
     - *Added integration test class `LocalAggregatePushDownITCase` for 
end-to-end functional test*
    
   ## 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, Kubernetes/Yarn, ZooKeeper: (no)
     - The S3 file system connector: (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 to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to