AlexanderSaydakov commented on issue #71:
URL: 
https://github.com/apache/datasketches-postgresql/issues/71#issuecomment-2021262318

   There is no validation. Sketches are binary blobs (bytea type). In and out 
functions handle Base64 decoding and encoding. Perhaps you could set up a 
trigger before insert to check? What type of checking would you do? Do you have 
a malicious intent in mind or corruption in transit? The trigger could do some 
basic check that the binary can be deserialized (say, call get_n() function). 
However, there is no checksum or anything like that. If corruption is possible, 
it can lead to incorrect results. We assumed that checking integrity of 
transport in outside of the scope of the library.


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