clintropolis opened a new pull request, #18906:
URL: https://github.com/apache/druid/pull/18906

   Was doing an experiment with a test using v10 format and was running into 
some issues like this when using `IndexBuilder` in `addSegmentsToWalker` method:
   ```
   java.lang.RuntimeException: com.google.inject.ProvisionException: Unable to 
provision, see the following errors:
   
   1) [Guice/ErrorInCustomProvider]: RuntimeException: InvalidTypeIdException: 
Please make sure to load all the necessary extensions and jars with type 
'HllSketchMergeAggregatorFactory'. Could not resolve type id 
'HllSketchMergeAggregatorFactory' as a subtype of `AggregatorFactory` known 
type ids = [cardinality, count, doubleAny, doubleFirst, doubleLast, doubleMax, 
doubleMean, doubleMin, doubleSum, expression, filtered, floatAny, floatFirst, 
floatLast, floatMax, floatMin, floatSum, grouping, histogram, hyperUnique, 
javascript, longAny, longFirst, longLast, longMax, longMin, longSum, 
singleValue, stringAny, stringFirst, stringFirstFold, stringLast, 
stringLastFold] (for POJO property 'aggregators')
    at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` 
disabled); line: 1, column: 5012] (through reference chain: 
SegmentFileMetadata["projections"]->ArrayList[0]->ProjectionMetadata["schema"]->TableProjectionSchema["aggregators"]->Object[][1])
   ```
   
   This is because by default IndexBuilder just uses a test object mapper, but 
it is different from the mapper of the test framework that has all of the 
extension modules and such loaded, so to fix I just pass this mapper into the 
method so the `IndexBuilder` can use it


-- 
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