Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-2125][streaming] Delimiter change from char to string #2233

Closed
wants to merge 1 commit into from

Conversation

delding
Copy link
Contributor

@delding delding commented Jul 13, 2016

Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration.
If your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the How To Contribute guide.
In addition to going through the list, please provide a meaningful description of your changes.

  • General
    • The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
    • The pull request addresses only one issue
    • Each commit in the PR has a meaningful commit message (including the JIRA id)
  • Documentation
    • Documentation has been added for new functionality
    • Old documentation affected by the pull request has been updated
    • JavaDoc for public methods has been added
  • Tests & Build
    • Functionality added by the pull request is covered by tests
    • mvn clean verify has been executed successfully locally or a Travis build has passed

@delding
Copy link
Contributor Author

delding commented Jul 13, 2016

This is my first pull request to Flink. Any comments would be very appreciative.

token = token.substring(0, token.length() - 1);
}
if (!token.isEmpty()) {
ctx.collect(token);
Copy link
Contributor

Choose a reason for hiding this comment

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

This changes existing behavior. Empty strings are filtered out, which wasn't done before.

@zentol
Copy link
Contributor

zentol commented Jul 13, 2016

Only had 2 small comments, otherwise this looks good to me.

@delding
Copy link
Contributor Author

delding commented Jul 13, 2016

Hi @zentol , thanks for your comments. I have updated this PR. Please let me know if there are further improvements that need to be done.

@StephanEwen
Copy link
Contributor

Because this breaks the public API, it would be good to do the following:

Add a new method to the StreamExecutionEnvironment, rather than changing the old method. Tag that new method as @PublicEvolving.

Take the old method, delegate to the new method, and mark it as @Deprecated. Also add a proper deprecation comment.

@zentol
Copy link
Contributor

zentol commented Jul 14, 2016

@StephanEwen The socketTextStream methods are already marked as @PublicEvolving, i thought changing those was allowed?

@delding
Copy link
Contributor Author

delding commented Jul 15, 2016

Hi @zentol , If you agree with @StephanEwen 's suggestion, I will update this PR in his way.

@StephanEwen
Copy link
Contributor

Yes, @PublicEvolving allows us to change things, but it is still nice for users if we give them a smooth transition :-)

@zentol
Copy link
Contributor

zentol commented Jul 15, 2016

ok, go ahead then.

@delding delding force-pushed the master branch 3 times, most recently from 9c220e2 to de2b11d Compare July 16, 2016 09:55
@delding
Copy link
Contributor Author

delding commented Jul 16, 2016

Hi, I have updated the PR as @StephanEwen suggested, adding two new methods named socketTextStream that take string delimiter as parameter and delegating the old method to the new one

@zentol
Copy link
Contributor

zentol commented Jul 25, 2016

merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants