Skip to content

Conversation

@yunfengzhou-hub
Copy link
Contributor

@yunfengzhou-hub yunfengzhou-hub commented Nov 17, 2022

What is the purpose of the change

This PR fixes the NPE that would possibly be thrown when using DataStreamUtils.aggregate.

Brief change log

  • Save only non-null values in the aggregate utility function's state.
  • Clarify the behavior of the aggregate utility function in respect of input parallelism and add a test for the corner case.

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)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@yunfengzhou-hub yunfengzhou-hub marked this pull request as ready for review November 17, 2022 10:05
@yunfengzhou-hub yunfengzhou-hub force-pushed the FLINK-30014 branch 2 times, most recently from 0dc6a27 to df5f886 Compare November 18, 2022 01:44
Copy link
Contributor

@zhipeng93 zhipeng93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. Left two minor comments below.

@zhipeng93
Copy link
Contributor

Thanks for the update. LGTM.

@zhipeng93 zhipeng93 changed the title [FLINK-30014][hotfix] ensure saving non-null value in aggregate util function state [FLINK-30014][hotfix] Ensure saving non-null value in aggregate util function state Nov 18, 2022
@zhipeng93 zhipeng93 merged commit bc24667 into apache:master Nov 18, 2022
Fanoid pushed a commit to Fanoid/flink-ml that referenced this pull request Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants