ClickHouse/tests/queries/0_stateless/03146_bug47862.sql

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

13 lines
280 B
MySQL
Raw Normal View History

2024-05-06 17:50:47 +00:00
SELECT toInt64(lookup_res) AS cast_res
FROM (
SELECT
indexOf(field_id, 10) AS val_idx,
['110'][val_idx] AS lookup_res
FROM (
SELECT arrayJoin([[10], [15]]) AS field_id
)
WHERE val_idx != 0
)
WHERE cast_res > 0
2024-07-12 12:49:26 +00:00
SETTINGS enable_analyzer = 1;