gfphoenix78 commented on code in PR #1163:
URL: https://github.com/apache/cloudberry/pull/1163#discussion_r2165266095
##########
src/backend/commands/tablecmds.c:
##########
@@ -1047,6 +1047,15 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid
ownerId,
*/
if (GpPolicyIsHashPartitioned(policy))
policy =
createRandomPartitionedPolicy(policy->numsegments);
+
+ /*
+ * Issue #1055: AO column storage not supported for zero-column
tables,
+ * report error.
+ */
+ if (accessMethodId == AO_COLUMN_TABLE_AM_OID)
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("AO column storage is not supported for
zero-column tables")));
Review Comment:
The error message should appear before the line 1041 to suppress the message
"creating a table with no columns.".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]