ydb
ydb copied to clipboard
Missing Passthrough(_yql_preagg_Count0:id) constraint in node AsStruct
Fatal: contrib/ydb/library/yql/core/yql_expr_constraint.cpp:3745 CheckExpected(): requirement newConstr failed, message: Rewrite error, missing Passthrough(_yql_preagg_Count0:id) constraint in node AsStruct, code: 1
yqlrun query to reproduce:
USE plato;
insert into @a1
select Just("a"u) as element_type, "b" as id;
insert into @a2
select "b" as id;
commit;
SELECT
count(DISTINCT(IF(element_type == 'b' , id, null))) as f
FROM concat(@a1, @a2)
;