Skip to content

Commit

Permalink
Merge pull request #4 from takemikami/bugfix-lexicalform
Browse files Browse the repository at this point in the history
bugfix: get string-type numericcal value problem
  • Loading branch information
takemikami authored Oct 16, 2020
2 parents dddf208 + 00eb6b3 commit 9697f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ configurations {
provided
}

version = "0.0.1"
version = "0.0.2"

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down
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 9697f34

Please sign in to comment.