You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/04/27 17:09:39 UTC

[GitHub] [druid] gianm opened a new pull request #11168: InDimFilter: Fix cache key computation to avoid collisions.

gianm opened a new pull request #11168:
URL: https://github.com/apache/druid/pull/11168


   The prior code did not include separation between values, and encoded
   null ambiguously. This patch fixes both of those issues by encoding
   strings as length + value instead of just value.
   
   I think cache key computation was OK prior to #9800. Prior to that
   patch, the cache key was computed using CacheKeyBuilder.appendStrings,
   which encodes strings as UTF-8 and inserts a separator byte (0xff)
   between them that cannot appear in a UTF-8 stream.


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] gianm merged pull request #11168: InDimFilter: Fix cache key computation to avoid collisions.

Posted by GitBox <gi...@apache.org>.
gianm merged pull request #11168:
URL: https://github.com/apache/druid/pull/11168


   


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] jihoonson commented on pull request #11168: InDimFilter: Fix cache key computation to avoid collisions.

Posted by GitBox <gi...@apache.org>.
jihoonson commented on pull request #11168:
URL: https://github.com/apache/druid/pull/11168#issuecomment-827777401


   Nice catch 👍 


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org