Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Passthrough(_yql_preagg_Count0:id) constraint in node AsStruct #4084

Closed
rvu1024 opened this issue Apr 24, 2024 · 0 comments · Fixed by #4501
Closed

Missing Passthrough(_yql_preagg_Count0:id) constraint in node AsStruct #4084

rvu1024 opened this issue Apr 24, 2024 · 0 comments · Fixed by #4501
Assignees

Comments

@rvu1024
Copy link
Member

rvu1024 commented Apr 24, 2024

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)
;
@Tony-Romanov Tony-Romanov linked a pull request May 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants