提交 1f284104 编写于 作者: V Vitaliy Lyudvichenko

Fixed false positive error messages for queries with IN and ARRAY JOIN. [#CLICKHOUSE-2]

上级 86e4099c
......@@ -1489,7 +1489,7 @@ void ExpressionAnalyzer::makeSetsForIndexImpl(const ASTPtr & node, const Block &
{
for (auto & child : node->children)
{
/// Process expression only in current subquery
/// Don't descent into subqueries.
if (typeid_cast<ASTSubquery *>(child.get()))
continue;
......
......@@ -22,4 +22,11 @@ ALL INNER JOIN
FROM test.join_with_index
WHERE toUInt64(data) IN (0, 529335254087962442)
) USING (key);
DROP TABLE IF EXISTS test.join_with_index;
\ No newline at end of file
SELECT _uniq, _uniq IN (0, 99)
FROM test.join_with_index
ARRAY JOIN
[key, data] AS _uniq
ORDER BY _uniq;
DROP TABLE IF EXISTS test.join_with_index;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册