cloudberry icon indicating copy to clipboard operation
cloudberry copied to clipboard

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

Open gfphoenix78 opened this issue 8 months ago • 1 comments

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

gfphoenix78 avatar Apr 19 '25 08:04 gfphoenix78

I'll have a look at this problem.

lss602726449 avatar May 14 '25 08:05 lss602726449