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
相关文章
相关标签/搜索