Jackie-Jiang commented on code in PR #14337: URL: https://github.com/apache/pinot/pull/14337#discussion_r1831497506
########## pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/JsonExtractScalarTransformFunction.java: ########## @@ -184,8 +191,7 @@ public long[] transformToLongValuesSV(ValueBlock valueBlock) { if (result instanceof Number) { _longValuesSV[i] = ((Number) result).longValue(); } else { - // Handle scientific notation - _longValuesSV[i] = (long) Double.parseDouble(result.toString()); + _longValuesSV[i] = Long.parseLong(result.toString()); Review Comment: Do you mean user could write long values with scientific notation? If so, should we consider using `BigInteger` to parse it? I'm also okay using `BigDecimal` to parse all numeric values since the overhead should be okay comparing to the cost of parsing json string. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org