Skip to content

Extra quotes in plan when using unlist function #8618

Closed
@sim1984

Description

@sim1984

Here's what a normal plan output looks like when using tables:

select count(*)
from
  horse h
PLAN ("H" NATURAL)

Explain:

Select Expression
    -> Aggregate
        -> Table "PUBLIC"."HORSE" as "H" Full Scan

Now let's try to get a plan if the query uses UNLIST

select count(*)
from
  unlist('1,2,3') as l(n)
PLAN ("""L""" NATURAL)

Explain:

Select Expression
    -> Aggregate
        -> Functions Unlist as """L""" Scan

There are obviously a lot of extra quotation marks here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions