gianm commented on issue #12261:
URL: https://github.com/apache/druid/issues/12261#issuecomment-1121283428

   > With the new datasketches-java 3.2.0-RC1 that is in vote right now, it is 
not possible to merge a KllFloatsSketch into a KllDoublesSketch as it will 
throw an error. Even if this were possible, you would naturally lose some 
accuracy (at the primitive level) going from a float to a double. Nevertheless, 
it would be relatively straightforward to create a "converter tool" that would 
create a KllDoublesSketch from a KllFloatsSketch that one could use before a 
merge. Is such a capability of interest in the Druid community? If so, could it 
wait until the next datasketches-java release?
   
   If we're going to support using both at ingestion time, then I think a 
converter would be useful, since that would allow people to switch from the 
float sketch to the double sketch without creating a new column. However, I 
don't think it's essential enough to block datasketches-java releases. We will 
just need to document that at the current time, if you want to switch KLL 
sketch implementations, you should create a new column, and you can't merge 
sketches of two different types. 


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