blob: 435fa525c36fdc7d91afaa49877287f971cb26a7 [file] [log] [blame]
create table test1 (s string);
create table test2 (m string);
EXPLAIN CBO SELECT c.m
FROM (
SELECT substr(from_unixtime(unix_timestamp(), 'yyyy-MM-dd'), 1, 1) as m
FROM test1
WHERE substr(from_unixtime(unix_timestamp(), 'yyyy-MM-dd'), 1, 1) = '2') c
JOIN test2 d ON c.m = d.m;