You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by fhueske <gi...@git.apache.org> on 2017/07/17 11:31:51 UTC

[GitHub] flink issue #4350: [FLINK-7204] [core] CombineHint.NONE

Github user fhueske commented on the issue:

    https://github.com/apache/flink/pull/4350
  
    Hi @greghogan, I think this is definitely a valuable improvement.
    However, I looked at the plan of a query with a `ReduceFunction` with `CombineHint.None` and found that it still has a combine node:
    
    ```
    [IN] -FWD-> [COMBINE(SORTED_REDUCE)] -HASH-> [REDUCE(SORTED_REDUCE)] -> [OUT]
    ```
    
    I think we should
    1. set `combinerStrategy` to `DriverStrategy.NONE` in `ReduceNode` for `CombineHint.NONE`.
    2. change `ReduceProperties.instantiate()` with a check for `combinerStrategy == NONE` and not add a node for the combiner in that case.
    3. add a test in `ReduceCompilationTest` similar to `testGroupedReduceWithHint()` to check that the resulting plan has no combine node.
    
    Best, Fabian


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---