Fix referencing virtual table predicates

We need to enumerate first and filter afterward — not the other way
around — because we later use the indexes produced by `enumerate` to
access the original `predicates` slice.
This commit is contained in:
Piotr Rzysko
2025-06-11 07:53:09 +02:00
parent 319cdbe3af
commit 44b1b1852a
2 changed files with 5 additions and 1 deletions

View File

@@ -442,6 +442,10 @@ def _test_kv(exec_name, ext_path):
lambda res: res == "100|updated2",
"there is only 1 key remaining after setting all keys to same value",
)
limbo.run_test_fn(
"select * from t a, other b where b.c = 23 and a.key='100';",
lambda res: "100|updated2|23|32|23" == res,
)
limbo.quit()