[
https://issues.apache.org/jira/browse/BEAM-2930?focusedWorklogId=137804&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-137804
]
ASF GitHub Bot logged work on BEAM-2930:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Aug/18 13:21
Start Date: 24/Aug/18 13:21
Worklog Time Spent: 10m
Work Description: mxm commented on a change in pull request #6208:
[BEAM-2930] Side input support for Flink portable streaming.
URL: https://github.com/apache/beam/pull/6208#discussion_r212574656
##########
File path:
runners/core-java/src/main/java/org/apache/beam/runners/core/SideInputHandler.java
##########
@@ -148,30 +147,45 @@ public void addSideInputValue(PCollectionView<?>
sideInput, WindowedValue<Iterab
@Nullable
@Override
public <T> T get(PCollectionView<T> view, BoundedWindow window) {
- @SuppressWarnings("unchecked")
- Coder<BoundedWindow> windowCoder =
- (Coder<BoundedWindow>)
view.getWindowingStrategyInternal().getWindowFn().windowCoder();
-
- StateTag<ValueState<Iterable<?>>> stateTag =
sideInputContentsTags.get(view);
-
- ValueState<Iterable<?>> state =
- stateInternals.state(StateNamespaces.window(windowCoder, window),
stateTag);
- // TODO: Add support for choosing which representation is contained based
upon the
- // side input materialization. We currently can assume that we always have
a multimap
- // materialization as that is the only supported type within the Java SDK.
- @Nullable Iterable<KV<?, ?>> elements = (Iterable<KV<?, ?>>) state.read();
+ @Nullable Iterable<?> elements = getIterable(view, window);
if (elements == null) {
elements = Collections.emptyList();
}
Review comment:
Shouldn't this go into the `getIterable` function?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 137804)
Time Spent: 5h 10m (was: 5h)
> Flink support for portable side input
> -------------------------------------
>
> Key: BEAM-2930
> URL: https://issues.apache.org/jira/browse/BEAM-2930
> Project: Beam
> Issue Type: Sub-task
> Components: runner-flink
> Reporter: Henning Rohde
> Assignee: Thomas Weise
> Priority: Major
> Labels: portability
> Time Spent: 5h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)