Closed karthik-ramanathan-3006 closed 1 month ago
Potential duplicate of #13117 ?
Issue goes away when yb_enable_expression_pushdown
is disabled. It appears that the issue occurs when we try to deparse the Storage Index Filter
on idx_address_problem
. On the offending line, the variable a.recorded_at
is said to have varno = 1
and varattno = 3
. In this context, however, varno = 1
seems to be interpreted as table s
. Any vars referring to table a
such as in the index qual seem to have varno = 4
.
@andrei-mart It seems like Postgres when deparsing the index qual, it deparses the indexqualorig
field instead of indexqual
. Do you think something similar needs to be done for the yb_idx_pushdown
field?
Problem is only with EXPLAIN, the query is executed correctly.
For issue to occur there should be IndexScan
with a Storage Index Filter
in a subquery
.
Jira Link: DB-11462
Description
Setup
Query
Notes A combination of factors seem to cause this:
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information