diff --git a/src/test/regress/input/multi_copy.source b/src/test/regress/input/multi_copy.source index d1cea441f..92544b9a8 100644 --- a/src/test/regress/input/multi_copy.source +++ b/src/test/regress/input/multi_copy.source @@ -135,7 +135,8 @@ WHERE shardid = :new_shard_id; COPY customer_copy_range FROM '@abs_srcdir@/data/customer.1.data' WITH (DELIMITER '|'); -- Check whether data went into the right shard (maybe) -SELECT count(*) FROM customer_copy_range WHERE c_custkey = 1; +SELECT min(c_custkey), max(c_custkey), avg(c_custkey), count(*) +FROM customer_copy_range WHERE c_custkey <= 500; -- Check whether data was copied SELECT count(*) FROM customer_copy_range; diff --git a/src/test/regress/output/multi_copy.source b/src/test/regress/output/multi_copy.source index 19ce6670b..7edce8025 100644 --- a/src/test/regress/output/multi_copy.source +++ b/src/test/regress/output/multi_copy.source @@ -158,10 +158,11 @@ WHERE shardid = :new_shard_id; -- Test copy into range-partitioned table COPY customer_copy_range FROM '@abs_srcdir@/data/customer.1.data' WITH (DELIMITER '|'); -- Check whether data went into the right shard (maybe) -SELECT count(*) FROM customer_copy_range WHERE c_custkey = 1; - count -------- - 1 +SELECT min(c_custkey), max(c_custkey), avg(c_custkey), count(*) +FROM customer_copy_range WHERE c_custkey <= 500; + min | max | avg | count +-----+-----+----------------------+------- + 1 | 500 | 250.5000000000000000 | 500 (1 row) -- Check whether data was copied