The output columns of query should be collected by all of tupleIds in BaseTableRef rather than the top tupleIds of query. The top tupleIds of count(*) is Agg tuple which does not expand the star. Fixed #4065
The output columns of query should be collected by all of tupleIds in BaseTableRef rather than the top tupleIds of query. The top tupleIds of count(*) is Agg tuple which does not expand the star. Fixed #4065