Skip to content

Commit

Permalink
bugfix: get string-type numericcal value problem
Browse files Browse the repository at this point in the history
  • Loading branch information
takemikami committed Oct 16, 2020
1 parent d9247bd commit fd69b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/embulk/input/sparql/SparqlInputPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private long getLongValue(QuerySolution solution, String column)
return literal.getInt();
}
else {
return Long.parseLong(literal.toString());
return Long.parseLong(literal.getLexicalForm());
}
}
return Long.parseLong(solution.get(column).toString());
Expand All @@ -169,7 +169,7 @@ private double getDoubleValue(QuerySolution solution, String column)
return literal.getDouble();
}
else {
return Double.parseDouble(literal.toString());
return Double.parseDouble(literal.getLexicalForm());
}
}
return Double.parseDouble(solution.get(column).toString());
Expand Down

0 comments on commit fd69b22

Please sign in to comment.