Skip to content

[Bug] AO column table can't process zero-column table #1055

@gfphoenix78

Description

@gfphoenix78

Apache Cloudberry version

main branch, with cassert

What happened

set default_table_access_method = ao_column;
create table t1();
create index on t1 using btree ((1)); -- assert fail

insert into t1 default values;
select * from t1;

delete from t1;
select * from t1;

insert into t1 default values;
select * from t1;

The above query will crash.

What you think should happen instead

The above query should has the same behavior as heap tables.

How to reproduce

set default_table_access_method = ao_column;
create table t1();
create index on t1 using btree ((1)); -- assert fail

insert into t1 default values;
select * from t1;

delete from t1;
select * from t1;

insert into t1 default values;
select * from t1;

Operating System

no spec

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

    type: BugSomething isn't working

    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