diff --git a/velox/functions/sparksql/JsonFunctions.h b/velox/functions/sparksql/JsonFunctions.h index b3ff142752682..9069171149507 100644 --- a/velox/functions/sparksql/JsonFunctions.h +++ b/velox/functions/sparksql/JsonFunctions.h @@ -197,7 +197,7 @@ struct GetJsonObjectFunction { // These chars can be prior to a valid ending char. if (endingChar == ' ' || endingChar == '\r' || endingChar == '\n' || endingChar == '\t') { - return isValidEndingCharacter(currentPos++); + return isValidEndingCharacter(++currentPos); } return false; }