Skip to content

Commit

Permalink
Fixed an incorrect cast
Browse files Browse the repository at this point in the history
Casting getQuery to String was causing an exception. We cannot cast a LinkedHashMap to a String.
  • Loading branch information
Gcolon021 committed Jul 7, 2023
1 parent 4dc61e8 commit 7e350e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ private String getCrossCountForQuery(QueryRequest queryRequest) throws IOExcepti
}

private QueryRequest changeQueryExpectedResultType(QueryRequest queryRequest) {
String query = (String) queryRequest.getQuery();
Object query = queryRequest.getQuery();
logger.debug("Changing query: " + query);
JsonNode jsonNode = json.valueToTree(query);
List<JsonNode> expectedResultTypeParents = jsonNode.findParents("expectedResultType");
Expand Down

0 comments on commit 7e350e3

Please sign in to comment.