提交 b4bf2f0c 编写于 作者: A Alexey Milovidov

Added comment [#CLICKHOUSE-2]

上级 d0b6ac9f
......@@ -35,6 +35,10 @@ static bool isUnlimitedQuery(const IAST * ast)
return true;
/// It is SELECT FROM system.processes
/// NOTE: This is very rough check.
/// False negative: USE system; SELECT * FROM processes;
/// False positive: SELECT * FROM system.processes CROSS JOIN (SELECT ...)
if (auto ast_selects = typeid_cast<const ASTSelectWithUnionQuery *>(ast))
{
if (!ast_selects->list_of_selects || ast_selects->list_of_selects->children.empty())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册