mirror of https://github.com/apache/druid.git
87a2abff79
* Fix runtime error when IndexedTableJoinMatcher matches long selector to unique string index. 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. * Update tests. |
||
---|---|---|
.. | ||
src | ||
pom.xml |