Skip to content

Commit

Permalink
DHLearn: Scatterer: Cast first to PyObject before casting to provided…
Browse files Browse the repository at this point in the history
… type
  • Loading branch information
nbauernfeind committed Nov 9, 2021
1 parent 292025c commit 69f64b7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ public String[] generateQueryStrings(String futureOffsetColName) {
String[] queryStrings = new String[outputs.length];

for (int i = 0; i < outputs.length; i++) {
// TODO: TICKET #1026: Replace typeString with the following once ticket #1009 is resolved:
// final String typeString = outputs[i].getType() == null ? "" : "(" + outputs[i].getType() + ")";
final String typeString = outputs[i].getType() == null ? "" : "(" + outputs[i].getType() + ")(PyObject)";

final String typeString = "";
queryStrings[i] = String.format("%s = %s (__scatterer.scatter(%d, %s))", outputs[i].getColName(),
typeString, i, futureOffsetColName);
}
Expand Down

0 comments on commit 69f64b7

Please sign in to comment.