2023-06-06 19:03:23 +00:00
|
|
|
|
2024-07-12 12:49:26 +00:00
|
|
|
{% for enable_analyzer in [0, 1] -%}
|
2023-06-06 19:03:23 +00:00
|
|
|
{% for join_use_nulls in [0, 1] -%}
|
|
|
|
{% for kind in ['LEFT', 'RIGHT'] -%}
|
|
|
|
{% for strictness in ['SEMI', 'ANTI'] -%}
|
|
|
|
{% for maybe_materialize in ['', 'materialize'] -%}
|
|
|
|
|
2024-07-12 12:49:26 +00:00
|
|
|
SET enable_analyzer = {{ enable_analyzer }};
|
2023-06-06 19:03:23 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
;
|
|
|
|
|
2023-06-29 13:09:55 +00:00
|
|
|
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
|
|
|
|
;
|
|
|
|
|
2023-06-06 19:03:23 +00:00
|
|
|
{% endfor -%}
|
|
|
|
{% endfor -%}
|
|
|
|
{% endfor -%}
|
|
|
|
{% endfor -%}
|
|
|
|
{% endfor -%}
|