mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
576b407804
* Try to enforce table identification in CollectJoinOnKeysMatcher * Support filtering conditions in JOIN ON for HashJoin * Correct handle non equi join * Update test 00878_join_unexpected_results * Join on filters calculated as one row before join * Do not lookup key in hash join if condition for row is not hold * better * Support filtering conditions in JOIN ON for MergeJoin * Support Nullable mask in JOIN ON section * Fix style in Interpreters/TableJoin.cpp * Change return type of getColumnAsMask in join_common to ColumnPtr * Handle Nullable(Nothing) type in JOIN ON section, add test cases * Fix type cast JoinCommon::getColumnAsMask * Check type if conditions in JOIN ON section, support functions * Update tests with JOIN ON * Style changes, add comments for conditions in JOIN ON section * Add test cases for join on condtions * JOIN ON key1 = key2 AND (cond1 OR cond2) * Remove CollectJoinOnKeysVisitor has_join_keys * Add test cases for join on nullable/lc conditions * Fix style * Change error code 48 to 403 in join on tests * Fix whitespace
109 lines
584 B
Plaintext
109 lines
584 B
Plaintext
-- hash_join --
|
|
--
|
|
222 2
|
|
222 222
|
|
333 333
|
|
--
|
|
222 222
|
|
333 333
|
|
--
|
|
222
|
|
333
|
|
--
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
--
|
|
2
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
--
|
|
222 2
|
|
333 3
|
|
222 2
|
|
333 3
|
|
--
|
|
0 2 AAA a
|
|
0 4 CCC CCC
|
|
1 111 111 0
|
|
2 222 2 0
|
|
2 222 222 2 AAA AAA
|
|
3 333 333 3 BBB BBB
|
|
--
|
|
2 222 2 2 AAA a
|
|
2 222 222 2 AAA AAA
|
|
-- partial_merge --
|
|
--
|
|
222 2
|
|
222 222
|
|
333 333
|
|
--
|
|
222 222
|
|
333 333
|
|
--
|
|
222
|
|
333
|
|
--
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
1
|
|
--
|
|
2
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
2
|
|
3
|
|
--
|
|
222 2
|
|
333 3
|
|
222 2
|
|
333 3
|
|
--
|
|
0 2 AAA a
|
|
0 4 CCC CCC
|
|
1 111 111 0
|
|
2 222 2 0
|
|
2 222 222 2 AAA AAA
|
|
3 333 333 3 BBB BBB
|
|
--
|
|
2 222 2 2 AAA a
|
|
2 222 222 2 AAA AAA
|