Skip to content

Remove unnecessary NativeProjectExec in native take-ordered + projection #1746

@yew1eb

Description

@yew1eb

Issue

Current convertTakeOrderedAndProjectExec inserts an extra NativeProjectExec even when the result is collected directly to driver via executeCollect, For queries like:

SELECT id + 42, name, length(name) FROM t1 order by id limit 4
Image

Proposal

refactor NativeTakeOrderedExec to NativeTakeOrderedAndProjectExec that natively handles the projection List, so we can completely eliminate the redundant NativeProjectExec.

Metadata

Metadata

Assignees

No one assigned

    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