You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exercising a specific test case of dbt-postgres against CrateDB, while working on dbt-cratedb2, we discovered a set of statements that fails on the aggregation query on top of a view that is defined on top of a table and another view.
Steps to Reproduce
createtablet01as (select1as id);
createviewv02as (select2as id);
createviewv03as (
select*from t01
union allselect*from v02
);
select*from v03;
selectcount(*) from v03;
Actual Result
SQLParseException[Couldn't create execution plan from logical plan because of: Index 0 out of bounds for length 0:
HashAggregate[count(*)] (rows=1)
└ Rename[] AS doc.v03 (rows=unknown)
└ Union[] (rows=unknown)
├ Collect[doc.t01 | [] | true] (rows=unknown)
└ Rename[id] AS doc.v02 (rows=unknown)
└ Eval[2 AS id] (rows=unknown)
└ TableFunction[empty_row | [] | true] (rows=unknown)]
CrateDB version
CrateDB Nightly
CrateDB setup information
Docker standard.
Problem description
When exercising a specific test case of dbt-postgres against CrateDB, while working on dbt-cratedb2, we discovered a set of statements that fails on the aggregation query on top of a view that is defined on top of a table and another view.
Steps to Reproduce
Actual Result
Expected Result
The text was updated successfully, but these errors were encountered: