0

クエリの場合:

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

これは何を意味し、修正するにはどうすればよいですか?

4

1 に答える 1

1

同じ方法でテーブルを配布する必要があり、同じシャード数を持つ必要があります

于 2016-06-03T12:01:08.393 に答える