Properly type this in the future
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start at wayang-api/wayang-api-python/src/main/java/org/apache/wayang/api/python/executor/ProcessFeeder.java around line 104 and trace the object types reaching the generic Object branch. Clarify the intended replacement for this fallback and verify serialization behavior for supported inputs; done means the TODO is resolved without changing the existing byte-array, String, or Map.Entry cases.
Written by the indexing model from the issue text.
Description
Properly type this in the future
* Byte Array cases
*/
else if (obj instanceof Byte[] || obj instanceof byte[]) {
writeBytes(obj, dataOut);
}
/**
* String case
* */
else if (obj instanceof String) {
writeUTF((String) obj, dataOut);
}
// TODO: Properly type this in the future
else if (obj instanceof Object) {
writeUTF(String.valueOf(obj), dataOut);
}
/**
* Key, Value case
* */
else if (obj instanceof Map.Entry) {
writeKeyValue((Map.Entry) obj, dataOut);
}
else{
throw new WayangException("Unexpected element type " + obj.getClass());
}
} catch (IOException e) {
e.printStackTrace();
}
b486b16bbf5753fbec1338c4d5250e7197caa056
- Dominant language
- Java
- Stars
- 274
- Forks
- 141
- Avg merge
- 5d 16h
- Merged PRs (30d)
- 4
Contributor 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
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
[Docs] Fix broken markdown formatting, leaked reviewer prompt, and outdated URLs in tutorial.md Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
convert to config Opentodo
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100