ydb
ydb copied to clipboard
Missing Passthrough(/:kv_urls) constraint in node Just
Fatal: contrib/ydb/library/yql/core/yql_expr_constraint.cpp:3745 CheckExpected(): requirement newConstr failed, message: Rewrite error, missing Passthrough(/:kv_urls) constraint in node Just, code: 1
yqlrun query to reproduce:
USE plato;
insert into @a
select * from (
select [Just("a"), Just("b")] as url
) flatten list by url;
insert into @b
select Just(["b", "c"]) as kv_urls
;
commit;
$BAD_URLS =
SELECT url
FROM @a
where url == ""
;
SELECT
ListHasItems(ListFilter(kv_urls, ($x)->{RETURN $x IN $BAD_URLS})) AS bad_kv,
FROM @b;