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

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

commit 5a4a061ee0354c66098f29a2892fbe2502818f70
Author: ztao1987 <zhenglin.ta...@gmail.com>
AuthorDate: Mon Oct 11 15:18:06 2021 +0800

    HAWQ-1809. Support multiple location for readable ext HDFS table
---
 src/backend/commands/tablecmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 7e6429e..2b46e25 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -1183,7 +1183,7 @@ DefineExternalRelation(CreateExternalStmt *createExtStmt)
        if (filespace_name)
                pfree(filespace_name);
 
-       if (isExternalHdfs)
+       if (isExternalHdfs && iswritable)
        {
                if (list_length(exttypeDesc->location_list)!= 1)
                        ereport(ERROR,

Reply via email to