Accept regression diff in tablesample test case
authorPavan Deolasee <[email protected]>
Fri, 25 Aug 2017 12:11:01 +0000 (17:41 +0530)
committerPavan Deolasee <[email protected]>
Fri, 25 Aug 2017 12:11:01 +0000 (17:41 +0530)
It's just an addition of a Remote Subquery Scan node on top of the regular
plan.

src/test/regress/expected/tablesample.out

index 14ef07ceb16b7d9ca898408dfe2e0ef61bd6af40..75e7a7bdef47233c3a85267cbbe0a2e047ee51fd 100644 (file)
@@ -310,13 +310,14 @@ create table parted_sample_1 partition of parted_sample for values in (1);
 create table parted_sample_2 partition of parted_sample for values in (2);
 explain (costs off)
   select * from parted_sample tablesample bernoulli (100);
-                QUERY PLAN                 
--------------------------------------------
- Append
-   ->  Sample Scan on parted_sample_1
-         Sampling: bernoulli ('100'::real)
-   ->  Sample Scan on parted_sample_2
-         Sampling: bernoulli ('100'::real)
-(5 rows)
+                     QUERY PLAN                      
+-----------------------------------------------------
+ Remote Subquery Scan on all (datanode_1,datanode_2)
+   ->  Append
+         ->  Sample Scan on parted_sample_1
+               Sampling: bernoulli ('100'::real)
+         ->  Sample Scan on parted_sample_2
+               Sampling: bernoulli ('100'::real)
+(6 rows)
 
 drop table parted_sample, parted_sample_1, parted_sample_2;