mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
58 lines
2.1 KiB
Django/Jinja
58 lines
2.1 KiB
Django/Jinja
|
|
{% for allow_experimental_analyzer in [0, 1] -%}
|
|
{% for join_use_nulls in [0, 1] -%}
|
|
{% for kind in ['LEFT', 'RIGHT'] -%}
|
|
{% for strictness in ['SEMI', 'ANTI'] -%}
|
|
{% for maybe_materialize in ['', 'materialize'] -%}
|
|
|
|
SET allow_experimental_analyzer = {{ allow_experimental_analyzer }};
|
|
|
|
SET join_use_nulls = {{ join_use_nulls }};
|
|
|
|
SELECT id > 1, d.id FROM (SELECT {{ maybe_materialize }}(toLowCardinality(0)) AS id, 1 AS value) AS a
|
|
{{ strictness }} {{ kind }} JOIN (SELECT {{ maybe_materialize }}(toLowCardinality(0)) AS id) AS d
|
|
USING (id)
|
|
;
|
|
|
|
SELECT id > 1, d.id FROM (SELECT {{ maybe_materialize }}(toLowCardinality(toNullable(0))) AS id, 1 AS value) AS a
|
|
{{ strictness }} {{ kind }} JOIN (SELECT {{ maybe_materialize }}(toLowCardinality(0)) AS id) AS d
|
|
USING (id)
|
|
;
|
|
|
|
SELECT id > 1, d.id FROM (SELECT {{ maybe_materialize }}(toLowCardinality(0)) AS id, 1 AS value) AS a
|
|
{{ strictness }} {{ kind }} JOIN (SELECT {{ maybe_materialize }}(toLowCardinality(toNullable(0))) AS id) AS d
|
|
USING (id)
|
|
;
|
|
|
|
SELECT id > 1, d.id FROM (SELECT {{ maybe_materialize }}(toLowCardinality(toNullable(0))) AS id, 1 AS value) AS a
|
|
{{ strictness }} {{ kind }} JOIN (SELECT {{ maybe_materialize }}(toLowCardinality(toNullable(0))) AS id) AS d
|
|
USING (id)
|
|
;
|
|
|
|
SELECT id > 1, d.id FROM (SELECT {{ maybe_materialize }}(toLowCardinality(1)) AS id, 1 AS value) AS a
|
|
{{ strictness }} {{ kind }} JOIN (SELECT {{ maybe_materialize }}(toLowCardinality(2)) AS id) AS d
|
|
USING (id)
|
|
;
|
|
|
|
SELECT id > 1, d.id FROM (SELECT {{ maybe_materialize }}(toLowCardinality(0)) AS id, 1 AS value) AS a
|
|
{{ strictness }} {{ kind }} JOIN (SELECT {{ maybe_materialize }}(toLowCardinality(0)) AS id) AS d
|
|
ON a.id = d.id
|
|
;
|
|
|
|
SELECT id > 1, d.idd FROM (SELECT {{ maybe_materialize }}(toLowCardinality(0)) AS id, 1 AS value) AS a
|
|
{{ strictness }} {{ kind }} JOIN (SELECT {{ maybe_materialize }}(toLowCardinality(0)) AS idd) AS d
|
|
ON a.id = d.idd
|
|
;
|
|
|
|
SELECT *
|
|
FROM (SELECT {{ maybe_materialize }}(NULL :: Nullable(UInt64)) AS id) AS a
|
|
{{ strictness }} {{ kind }} JOIN (SELECT {{ maybe_materialize }}(1 :: UInt32) AS id) AS d
|
|
ON a.id = d.id
|
|
;
|
|
|
|
{% endfor -%}
|
|
{% endfor -%}
|
|
{% endfor -%}
|
|
{% endfor -%}
|
|
{% endfor -%}
|