Skip to content

sql: gist decoder not properly setting number of spans in scan constraints #85324

@cucaroach

Description

@cucaroach

We alloc the right number of constraints but don't actually append fake ones to properly set the count. So right now we get:

explain-plan-gist
AgHyAQIA//8HHgAAByoFKiHyAQAA
----
• update
│ table: ?
│ set
│
└── • render
    │
    └── • scan
          table: ?@?
          spans: 1 spans

It should be:

explain-plan-gist
AgHyAQIA//8HHgAAByoFKiHyAQAA
----
• update
│ table: ?
│ set
│
└── • render
    │
    └── • scan
          table: ?@?
          spans: 15 spans

Jira issue: CRDB-18190

Metadata

Metadata

Assignees

Labels

C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-queriesSQL Queries Team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions