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

[BEAM-2918] Add state support for batch in portable FlinkRunner #6740

Merged
merged 2 commits into from
Oct 25, 2018

Conversation

mxm
Copy link
Contributor

@mxm mxm commented Oct 18, 2018

This adds portable state support for the batch mode.

CC @tweise @angoenka @robertwb

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
Build Status --- --- ---

@mxm
Copy link
Contributor Author

mxm commented Oct 18, 2018

Run Python Flink ValidatesRunner

@mxm
Copy link
Contributor Author

mxm commented Oct 18, 2018

Run Java Flink PortableValidatesRunner

@mxm
Copy link
Contributor Author

mxm commented Oct 18, 2018

There is still an issue I'm working on. Will ping when this is ready for review.

@mxm
Copy link
Contributor Author

mxm commented Oct 18, 2018

Run Python Flink ValidatesRunner

@mxm
Copy link
Contributor Author

mxm commented Oct 18, 2018

Run Java Flink PortableValidatesRunner

@mxm
Copy link
Contributor Author

mxm commented Oct 18, 2018

This is now ready for review.

@mxm
Copy link
Contributor Author

mxm commented Oct 24, 2018

Rebased to #6726 and enabled additional StatefulParDo tests of PortableValidatesRunner test suite.

@mxm
Copy link
Contributor Author

mxm commented Oct 24, 2018

Run Python Flink ValidatesRunner

@mxm
Copy link
Contributor Author

mxm commented Oct 24, 2018

Run Java Flink PortableValidatesRunner

@mxm
Copy link
Contributor Author

mxm commented Oct 24, 2018

Rebased to master after #6726 was merged.

@mxm
Copy link
Contributor Author

mxm commented Oct 24, 2018

Run Python Flink ValidatesRunner

@mxm
Copy link
Contributor Author

mxm commented Oct 24, 2018

Run Java Flink PortableValidatesRunner

@mxm
Copy link
Contributor Author

mxm commented Oct 25, 2018

@tweise Do you think you could take a look?

@@ -595,4 +624,15 @@ private static void pruneOutput(
String.format("%s/out.%d", transformName, unionTag));
context.addDataSet(collectionId, pruningOperator);
}

private static <T> Coder<WindowedValue<T>> instantiateCoder(
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this to FlinkPipelineTranslatorUtils ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved.

@tweise
Copy link
Contributor

tweise commented Oct 25, 2018

Looks good, just one minor suggestion.

This adds portable state support for the batch mode.
MapState and SetState are not yet supported by the Fn client and need to be
disabled.
@mxm mxm merged commit d19cf3f into apache:master Oct 25, 2018
@mxm mxm deleted the flink-batch-state branch October 25, 2018 16:07
@mxm mxm restored the flink-batch-state branch October 25, 2018 16:07
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