Cause
An attempt is being made to create a foreign key constraint in a sharded table whose sharding or supersharding key columns do not form a subset of the foreign key columns.
Action
Include all sharding and supersharding key columns in the list of foreign key columns. This is required because foreign key constraint cannot be enforced across shards.