Skip to content

Derived table + aggregate combo returns NULL in some cases #24

Description

@renecannao

SELECT * FROM (SELECT COUNT(*) FROM users) AS t works in standalone tests but may return NULL instead of the correct count in certain contexts. The root cause is likely related to arena memory lifecycle when the inner PlanExecutor for derived table aggregates is built within the outer executor's operator tree.

Needs investigation of arena ownership across nested plan executions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions