Closed timothy-e closed 3 months ago
A delete related issue was resolved before https://github.com/yugabyte/yugabyte-db/issues/19911 cc @tanujnay112 for visibility
-> Distinct Index Only Scan using cc_int_key on cc child_subquery1_t2 (cost=0.00..1.10 rows=10 width=12)
Index Cond: (col_int_key = ANY (ARRAY[child_subquery1_t1.col_int_nokey, $1, $2, ..., $1023]))
Distinct Keys: child_subquery1_t2.col_int_key, child_subquery1_t2.col_int_nokey, child_subquery1_t2.col_varchar_nokey
Suspicious: Include columns are in the prefix. They are not sorted.
Landed the fix on master, 2024.1 and 2.20.
Jira Link: DB-11721
Description
But succeeds when distinct pushdown is false.
Schema and data: dump-c-cc-dd.txt
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information