water32 opened a new issue, #1323: URL: https://github.com/apache/cloudberry/issues/1323
### Apache Cloudberry version 2.0.1 ### What happened When there have some subpartition template in the database, an error occurs when using pg_get_expr to read the template. This bug has been fixed in Greenplum(open sorce code). ERROR: unrecognized node type: 758 (ruleutils.c:9700) ### What you think should happen instead In the new version(gp7), the pg_partition_rule system table is deprecated and pg_get_expr is used for parsing it. But, this function does not provide relevant code, it can refer to the open source gp code to solve. ### How to reproduce how to repro: --create partition table and subtemplate CREATE TABLE test_subtemp ( log_id integer, log_date date, log_type text ) WITH (APPENDONLY=FALSE) DISTRIBUTED RANDOMLY PARTITION BY RANGE(log_date); -- Child table name: public.logs_1_prt_p1 CREATE TABLE test_subtemp_1_prt_p1 PARTITION OF test_subtemp FOR VALUES FROM (MINVALUE) TO ('2025-07-31') PARTITION BY LIST(log_type) WITH (APPENDONLY=FALSE); -- Child table name: public.logs_1_prt_p1_2_prt_s1 CREATE TABLE test_subtemp_1_prt_p1_2_prt_s1 PARTITION OF test_subtemp_1_prt_p1 FOR VALUES IN ('1', '2', '3') WITH (APPENDONLY=FALSE); ALTER TABLE test_subtemp SET SUBPARTITION TEMPLATE ( SUBPARTITION "1 2" VALUES ('1', '2', '3') ); --query subtemplate SELECT pg_get_expr(template, relid) FROM gp_partition_template; --ERROR ERROR: unrecognized node type: 758 (ruleutils.c:9700) ### Operating System Red Hat Enterprise Linux Server release 7.7 (Maipo) ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes, I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/cloudberry/blob/main/CODE_OF_CONDUCT.md). -- 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: commits-unsubscr...@cloudberry.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cloudberry.apache.org For additional commands, e-mail: commits-h...@cloudberry.apache.org