check why this does not work because of the List<V> generic type
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 32/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- java
调研方向
从 wayang-ml4all/src/main/java/org/apache/wayang/ml4all/abstraction/plan/wrappers/AssignWrapper.java 开始,重点检查其中的 List 声明、Update<R, ?> 字段、构造函数和被注释掉的 open 方法。跟踪相关的 LogicalOperatorWrapperWithContext 和 Update 类型,以确定泛型 List 类型失败的原因。完成的标准是理解该问题,并且项目能够使用正确、类型安全的 AssignWrapper 实现完成构建。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Java
- 星标
- 284
- 派生
- 147
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 13
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/wayang 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
JavaReservoirSampleOperator returns the whole input when the dataset size is unknown可能已有人在做 @sasmith-14 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
Record.compareTo() throws ClassCastException when comparing records可能已有人在做 @harshitsingh070 于 69 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
Unused parameter in function ProjectionDescriptor.createPojoJavaImplementation()可能已有人在做 @AliRana30 于 77 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 2 天内回复
-
DISCLAIMER and some "(incubating)" references are still around after graduation可能已有人在做 @sasmith-14 于 1 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 66/100
apache/wayang#895 · 1 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
jenkins-infra/plugin-modernizer-tool#2070 · 1 条评论 ·
维护者通常 1 天内回复
-
Event search answers 500 when calendars, attendees or organizers holds a null element可能重新可做 关联的 PR 已关闭且未合并。 未关闭ai-driven-qa bug Minor
难度 2/5 1-3 小时 新手友好度 70/100
linagora/twake-calendar-side-service#1615 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
eclipse-tradista/tradista#371 ·
维护者通常 1 天内回复
-
critical
难度 2/5 1-3 小时 新手友好度 68/100
mars-sim/mars-sim#2199 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
projeto-ong-amar/projeto-ong-amar-backend#26 ·
维护者通常 1 天内回复