hive中的笛卡爾積

Hive自己是不支持笛卡爾積的,不能用select T1.*, T2.* from table_1, table_2這種語法。但有時候確實須要用到笛卡爾積的時候,能夠用下面的語法來實現一樣的效果:table select T1.*, T2.* from (select * from table1) T1 join (select * from table2) T2 on 1=1; 其中on
相關文章
相關標籤/搜索