jmalkin commented on issue #50:
URL: 
https://github.com/apache/incubator-datasketches-hive/issues/50#issuecomment-636111349


   This is a bug in lots of places, as noted in the PR. I'll start working to 
fix them all (that might take a bit but I'll try to get it done soon).
   
   Wrapping the larger buffer will be harmless in most cases. The specific 
issue here is that there was an older version of the specialized 
SingleItemSketch that didn't include a flag indicating that it followed the 
slightly different single item format. To handle that problem, the only 
workaround that could be identified was to use the buffer length. In general, 
the images shouldn't need to rely on buffer size (other than ensuring it's not 
too small) when being read.
   
   And checks against size for the empty sketch scenario _should_ be a 
performance optimization, but work properly if parsing an actual empty sketch 
later. But we should fix this properly anyway.


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

Reply via email to