ClickHouse/tests/queries/0_stateless/01076_predicate_optimizer_with_view.reference

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
454 B
Plaintext
Raw Normal View History

SELECT
2020-06-22 14:37:42 +00:00
date,
id,
name,
value
FROM
2020-06-22 14:37:42 +00:00
(
SELECT *
FROM default.test
HAVING id = 1
) AS test_view
WHERE id = 1
SELECT
2020-06-22 14:37:42 +00:00
date,
id,
name,
value
FROM
2020-06-22 14:37:42 +00:00
(
SELECT *
FROM default.test
HAVING id = 2
) AS test_view
WHERE id = 2
SELECT id
FROM
2020-06-22 14:37:42 +00:00
(
SELECT *
FROM default.test
HAVING id = 1
) AS test_view
WHERE id = 1
SELECT id
FROM
2020-06-22 14:37:42 +00:00
(
SELECT *
FROM default.test
HAVING id = 1
) AS s
WHERE id = 1