Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 SQL 中对两个表进行简单的连接,效果很好,但是当尝试使用相同的连接创建一个表时,它运行非常缓慢/永远不会完成执行。
create table trial distribute by hash(key1) as select a.*,b.item2 from table1 a left join table2 b on a.key2=b.key2;
我收集的问题是我正在分发key1但加入key2但是我不确定解决方案是什么。
key1
key2