簡體   English   中英

這是什么意思,以及如何解決citus錯誤?

[英]What does this mean and how to fix citus error?

對於查詢:

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

我收到錯誤消息:

Shards of relations in outer join queries must have 1-to-1 shard partitioning

這是什么意思,我應該怎么做才能解決?

您應該使用相同的方法分發表,並且它們的分片數應該相同

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM