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-3419] Flesh out iterable side inputs and key enumeration for multimaps in shared libraries #10147

Merged
merged 1 commit into from Nov 20, 2019

Conversation

lukecwik
Copy link
Member

@lukecwik lukecwik commented Nov 18, 2019

This now removed the byte[] that was used as the key and exposed the SDKs coder specifically using the structural value for comparison.

Update portable Python to use the iterable state key. Note that this doesn't effect Dataflow since dataflow_runner.py converts all iterable side inputs into multimap right now and no SDK performs key enumeration yet.

Update both Flink and Spark to support iterable API and also key enumeration for multimaps. To minimize the extent of this change, I did the minimal modification for Dataflow. A follow-up PR will do the same for Dataflow and then enable multimap side input key enumeration and iterable lookup within various SDKs.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status 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
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@lukecwik lukecwik force-pushed the side_input branch 2 times, most recently from d319089 to 38cc4bc Compare November 19, 2019 00:45
…ltimaps in shared libraries

This now removed the byte[] that was used as the key and exposed the SDKs coder specifically using the structural value for comparison.

Update portable Python to use the iterable state key. Note that this doesn't effect Dataflow since dataflow_runner.py converts all iterable side inputs into multimap right now and no SDK performs key enumeration yet.

Update both Flink and Spark to support iterable API and also key enumeration for multimaps. To minimize the extent of this change, I did the minimal modification for Dataflow. A follow-up PR will do the same for Dataflow and then enable multimap side input key enumeration and iterable lookup within various SDKs.
@lukecwik lukecwik changed the title [WIP] Flesh out iterable side input and key access for multimaps [BEAM-3419] Flesh out iterable side inputs and key enumeration for multimaps in shared libraries Nov 19, 2019
@lukecwik
Copy link
Member Author

R: @tweise @mxm

@lukecwik
Copy link
Member Author

Run Portable_Python PreCommit

@lukecwik
Copy link
Member Author

Run Python PreCommit

@lukecwik
Copy link
Member Author

Run Java PreCommit

@lukecwik
Copy link
Member Author

CC: @robertwb @lostluck

Copy link
Contributor

@mxm mxm left a comment

Choose a reason for hiding this comment

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

Great to see the side input access patterns more accurately represented in the Proto, as well as in the shared libraries. I've made a pass. It looks good to me.

@mxm
Copy link
Contributor

mxm commented Nov 20, 2019

Run Flink ValidatesRunner

@lukecwik lukecwik merged commit 9407578 into apache:master Nov 20, 2019
@tvalentyn
Copy link
Contributor

I think this breaks :runners:spark:compileJava on master. @lukecwik can you please take a look?

@tvalentyn
Copy link
Contributor

beam/runners/spark/src/main/java/org/apache/beam/runners/spark/structuredstreaming/translation/batch/functions/SparkSideInputReader.java:49: error: incompatible types: MultimapView is not a functional interface
      o -> Collections.EMPTY_LIST;
      ^

@tvalentyn
Copy link
Contributor

@ibzib has a fix in flight for this.

@ibzib
Copy link
Contributor

ibzib commented Nov 20, 2019

#10182

11moon11 pushed a commit to 11moon11/beam that referenced this pull request Dec 12, 2019
…ltimaps in shared libraries (apache#10147)

This now removed the byte[] that was used as the key and exposed the SDKs coder specifically using the structural value for comparison.

Update portable Python to use the iterable state key. Note that this doesn't effect Dataflow since dataflow_runner.py converts all iterable side inputs into multimap right now and no SDK performs key enumeration yet.

Update both Flink and Spark to support iterable API and also key enumeration for multimaps. To minimize the extent of this change, I did the minimal modification for Dataflow. A follow-up PR will do the same for Dataflow and then enable multimap side input key enumeration and iterable lookup within various SDKs.
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.

None yet

4 participants