You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by hu...@apache.org on 2019/07/31 01:52:10 UTC

[hawq] 01/02: HAWQ-1732. Make writable table can read

This is an automated email from the ASF dual-hosted git repository.

huor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hawq.git

commit 4732b4ec6c456b2beba08c97b554a31dd8c72f96
Author: wang.ziming <wa...@oushu.io>
AuthorDate: Mon Jul 29 17:15:16 2019 +0800

    HAWQ-1732. Make writable table can read
---
 src/backend/optimizer/plan/createplan.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/backend/optimizer/plan/createplan.c b/src/backend/optimizer/plan/createplan.c
index cc8fc0e..cc8da99 100644
--- a/src/backend/optimizer/plan/createplan.c
+++ b/src/backend/optimizer/plan/createplan.c
@@ -1293,15 +1293,6 @@ create_externalscan_plan(CreatePlanContext *ctx, Path *best_path,
 		using_location = true;
 	}
 
-	/* various validations */
-
-	if(rel->writable && allocatedResource)
-		ereport(ERROR,
-				(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
-				errmsg("it is not possible to read from a WRITABLE external table."),
-				errhint("Create the table as READABLE instead"),
-						 errOmitLocation(true)));
-
 	if(rel->rejectlimit != -1)
 	{
 		/* 
@@ -5142,3 +5133,5 @@ flatten_grouping_list(List *groupcls)
 
 	return result;
 }
+
+