cloudberry
cloudberry copied to clipboard
[Bug] AO column table can't process zero-column table
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
- [x] I agree to follow this project's Code of Conduct.
I'll have a look at this problem.