[英]What does this mean and how to fix citus error?
For the query: 对于查询:
SELECT
cu.id id,
cu.email email,
SUM(case when(rt.type = 'credit' and ( re.type = 'account_refilling' OR re.type = 'site_publishing' OR re.type = 'tariff_buying' )) then rt.amount else 0 end ) transactions_sum
FROM client_users cu
LEFT JOIN referral_accounts ra ON ra.owner_id = cu.id
LEFT JOIN referral_transactions rt ON rt.account_id = ra.id
LEFT JOIN referral_events re ON re.id = rt.event_id
GROUP BY cu.id, cu.email
ORDER BY transactions_sum DESC
I got error: 我收到错误消息:
Shards of relations in outer join queries must have 1-to-1 shard partitioning
What does this mean and what I should do to fix it? 这是什么意思,我应该怎么做才能解决?
您应该使用相同的方法分发表,并且它们的分片数应该相同
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.