johighley opened a new issue #6634:
URL: https://github.com/apache/incubator-pinot/issues/6634
I'm ingesting JSON data to a realtime table. The value is a JSON String but
is a numeric value with leading spaces:
{ "account":" 123", ....}
If the table column type is Double, then this record will load successfully
-- it ignores the leading spaces. If the column type is Int, then the record
will not load and there is no error in the server logs (or any log I can find).
It fails silently. If I remove the leading spaces, then the String will load
successfully as an Int.
1) When converting a JSON String value to an Int column type, whitespace
needs to be trimmed prior to parsing.
2) A record ingestion should not fail silently. I'm guessing
Integer.parseInt is being used and throwing a NumberFormatException that is
being eaten.
Code is version 0.7.0-SNAPSHOT-e62addb3b381e89d3afe24847a1bff06e7682246
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]