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/03/03 19:13:52 UTC

[GitHub] [druid] gianm opened a new pull request #10942: Fix runtime error when IndexedTableJoinMatcher matches long selector to unique string index.

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


   The issue arises when matching against a long selector on the left-hand side to a string
   typed Index on the right-hand side, and when that Index also returns true from areKeysUnique.
   In this case, IndexedTableJoinMatcher would generate a ConditionMatcher that implements
   matchSingleRow by calling findUniqueLong on the Index. This is inappropriate because the Index
   is actually string typed. The fix is to check the type of the Index before deciding how to
   implement the ConditionMatcher.
   
   The patch adds "testMatchSingleRowToUniqueStringIndex" to IndexedTableJoinMatcherTest, which
   explores this case.


----------------------------------------------------------------
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 #10942: Fix runtime error when IndexedTableJoinMatcher matches long selector to unique string index.

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


   


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