gianm commented on PR #15999:
URL: https://github.com/apache/druid/pull/15999#issuecomment-1969557041

   This bug is triggered when `Rows.objectToNumber` is called with `outputType` 
set to `LONG` and with a decimal string input.
   
   The only call to `Rows.objectToNumber` that uses nonnull `outputType` is 
`RowBasedColumnSelectorFactory`, in a situation where its `columnInspector` has 
type info. Most usages of `RowBasedColumnSelectorFactory` don't satisfy both 
conditions for this bug: they either don't have type info, or they _do_ have 
type info but they would not provide a string with type `LONG`.
   
   AFAICT, the only call sites that meet both these criteria are 
`ExternalSegment` (used for EXTERN in SQL-based ingest) and 
`InlineSegmentWrangler` (used for `inline` datasources). So this bug could be 
triggered by an EXTERN call with a column that is declared as LONG or BIGINT 
but is naturally string-typed (such as a column from a TSV or CSV file); or an 
inline datasource where a field is declared as LONG but is provided as a string 
in the JSON.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to