Skip to content

[Feature] Fold constant expr by Backend #6232

@qidaye

Description

@qidaye

Now when Doris is performing some constant expr, if the data query is not involved, it is calculated directly in FE,

eg: select str_to_date(202009,'%Y%m'); calculate in FE
select str_to_date(str,'%Y%m') from tb; calculate in BE

Now two sets of functions are maintained, and it is easy to cause inconsistent FE/BE calculation results.

Plan to push down the FE calculation to BE. Keep the calculation results consistent to facilitate code maintenance.

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