check why this does not work because of the List<V> generic type
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- java
- Domain
- distributed-systems
Research direction
Start with wayang-ml4all/src/main/java/org/apache/wayang/ml4all/abstraction/plan/wrappers/AssignWrapper.java, especially its List declaration, Update<R, ?> field, constructor, and commented open method. Trace the related LogicalOperatorWrapperWithContext and Update types to determine why the generic List type fails. Done means the issue is understood and the project builds with a correct, type-safe AssignWrapper implementation.
Written by the indexing model from the issue text.
Description
check why this does not work because of the List generic type
public void open(ExecutionContext executionContext) {
context = executionContext.getBroadcast("context").iterator().next();
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wayang.ml4all.abstraction.plan.wrappers;
import org.apache.wayang.ml4all.abstraction.api.Update;
import org.apache.wayang.ml4all.abstraction.plan.ML4allGlobalVars;
import java.util.List;
public class AssignWrapper<R> extends LogicalOperatorWrapperWithContext<ML4allGlobalVars, List<R>> { //TODO:check why this does not work because of the List<V> generic type
Update<R,?> logOp;
public AssignWrapper(Update logOp) {
this.logOp = logOp;
}
@Override
public ML4allGlobalVars apply(List<R> o) {
ML4allGlobalVars newContext = context.clone();
return this.logOp.assign(o, newContext);
}
@Override
public void initialise() {
}
// @Override
// public void open(ExecutionContext executionContext) {
// context = executionContext.<ML4allGlobalVars>getBroadcast("context").iterator().next();
//
// }
}
c3d0a623a7d8e7bac13e2adf6316762638dd2b33
- Dominant language
- Java
- Stars
- 284
- Forks
- 147
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 13
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/wayang
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
JavaReservoirSampleOperator returns the whole input when the dataset size is unknownPossibly taken @sasmith-14 claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/wayang#884 · 3 comments ·
Maintainers usually reply within 2 days
-
Record.compareTo() throws ClassCastException when comparing recordsPossibly taken @harshitsingh070 claimed this 69 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
Unused parameter in function ProjectionDescriptor.createPojoJavaImplementation()Possibly taken @AliRana30 claimed this 77 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/wayang#732 · 3 comments ·
Maintainers usually reply within 2 days
-
DISCLAIMER and some "(incubating)" references are still around after graduationPossibly taken @sasmith-14 claimed this 1 day ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 66/100
apache/wayang#895 · 1 comment · 1 assignee ·
Maintainers usually reply within 2 days
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jenkins-infra/plugin-modernizer-tool#2070 · 1 comment ·
Maintainers usually reply within 1 day
-
Event search answers 500 when calendars, attendees or organizers holds a null elementMay be free again A pull request for this issue was closed without being merged. Openai-driven-qa bug Minor
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
linagora/twake-calendar-side-service#1615 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
eclipse-tradista/tradista#371 ·
Maintainers usually reply within 1 day
-
critical
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mars-sim/mars-sim#2199 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
projeto-ong-amar/projeto-ong-amar-backend#26 ·
Maintainers usually reply within 1 day