blob: 2d47f7aee3f8f45b98a7eebe7d2309a9f47eac21 [file] [log] [blame]
====
---- QUERY
# Partition key scan combined with join.
select straight_join count(distinct year), count(distinct month), combined
from alltypes
join (
select count(*) as combined
from (select distinct year, month from alltypes) v) v
group by combined
---- RESULTS
2,12,24
---- TYPES
BIGINT,BIGINT,BIGINT
====