diff --git a/src/backend/distributed/planner/merge_planner.c b/src/backend/distributed/planner/merge_planner.c index a3019e0ec..cbfc53ce6 100644 --- a/src/backend/distributed/planner/merge_planner.c +++ b/src/backend/distributed/planner/merge_planner.c @@ -1281,7 +1281,9 @@ SourceResultPartitionColumnIndex(Query *mergeQuery, List *sourceTargetList, { if (IsCitusTableType(targetRelation->relationId, SINGLE_SHARD_DISTRIBUTED)) { - return -1; + ereport(ERROR, (errmsg("MERGE operation across distributed schemas " + "or with a row-based distributed table is " + "not yet supported"))); } /* Get all the Join conditions from the ON clause */