mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Fix tests
This commit is contained in:
parent
93b661ad5a
commit
2f8f4e9697
@ -41,6 +41,10 @@ bool isValidFunction(const ASTPtr & expression, const NameSet & columns)
|
|||||||
if (!isValidFunction(function->arguments->children[0], columns))
|
if (!isValidFunction(function->arguments->children[0], columns))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if (function->name == "ignore")
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (function->arguments)
|
if (function->arguments)
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
0
|
0
|
||||||
|
0
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ INSERT INTO xp SELECT '2020-01-01', number, '' FROM numbers(100000);
|
|||||||
|
|
||||||
CREATE TABLE xp_d AS xp ENGINE = Distributed(test_shard_localhost, currentDatabase(), xp);
|
CREATE TABLE xp_d AS xp ENGINE = Distributed(test_shard_localhost, currentDatabase(), xp);
|
||||||
|
|
||||||
SELECT count(7 = (SELECT number FROM numbers(0) ORDER BY number ASC NULLS FIRST LIMIT 7)) FROM xp_d PREWHERE toYYYYMM(A) GLOBAL IN (SELECT NULL = (SELECT number FROM numbers(1) ORDER BY number DESC NULLS LAST LIMIT 1), toYYYYMM(min(A)) FROM xp_d) WHERE B > NULL; -- { serverError 20 }
|
SELECT count(7 = (SELECT number FROM numbers(0) ORDER BY number ASC NULLS FIRST LIMIT 7)) FROM xp_d PREWHERE toYYYYMM(A) GLOBAL IN (SELECT NULL = (SELECT number FROM numbers(1) ORDER BY number DESC NULLS LAST LIMIT 1), toYYYYMM(min(A)) FROM xp_d) WHERE B > NULL; -- B > NULL is evaluated to 0 and this works
|
||||||
|
|
||||||
SELECT count() FROM xp_d WHERE A GLOBAL IN (SELECT NULL); -- { serverError 53 }
|
SELECT count() FROM xp_d WHERE A GLOBAL IN (SELECT NULL); -- { serverError 53 }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user