Skip to content

[Bug] Specifying TAM for partiotion table #698

@reshke

Description

@reshke

Cloudberry Database version

No response

What happened

the behavior of creating partitioned table inconsistently handles Table Access Method clause, because of

https://github.com/cloudberrydb/cloudberrydb/blob/main/src/backend/commands/tablecmds.c#L840

if dont really understand this if condition. In my opinion, we should not disallow this. Newly created partitions should inherit partition root TAM, aren't they? So we need a way to specify it.

What you think should happen instead

No response

How to reproduce


db3=# create table t(i int) partition by range (i) (start (10) end (11)) using ao_row distributed by (i) ;
CREATE TABLE
db3=# drop table t;
DROP TABLE
db3=# create table t(i int) partition by range (i)  using ao_row distributed by (i) ;
ERROR:  specifying a table access method is not supported on a partitioned table

Operating System

any

Anything else

No response

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions