mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
fix build error
This commit is contained in:
parent
14dd696e95
commit
58c348fecd
@ -55,8 +55,7 @@ void RewriteArrayExistsFunctionMatcher::visit(const ASTFunction & func, ASTPtr &
|
||||
return;
|
||||
|
||||
const ASTIdentifier * filter_id = nullptr;
|
||||
const ASTLiteral * filter_literal = nullptr;
|
||||
if ((filter_id = filter_arguments[0]->as<ASTIdentifier>()) && (filter_literal = filter_arguments[1]->as<ASTLiteral>())
|
||||
if ((filter_id = filter_arguments[0]->as<ASTIdentifier>()) && filter_arguments[1]->as<ASTLiteral>()
|
||||
&& filter_id->full_name == id->full_name)
|
||||
{
|
||||
/// arrayExists(x -> x = elem, arr) -> has(arr, elem)
|
||||
@ -66,7 +65,7 @@ void RewriteArrayExistsFunctionMatcher::visit(const ASTFunction & func, ASTPtr &
|
||||
return;
|
||||
}
|
||||
else if (
|
||||
(filter_id = filter_arguments[1]->as<ASTIdentifier>()) && (filter_literal = filter_arguments[0]->as<ASTLiteral>())
|
||||
(filter_id = filter_arguments[1]->as<ASTIdentifier>()) && filter_arguments[0]->as<ASTLiteral>()
|
||||
&& filter_id->full_name == id->full_name)
|
||||
{
|
||||
/// arrayExists(x -> elem = x, arr) -> has(arr, elem)
|
||||
|
Loading…
Reference in New Issue
Block a user